Lines 41-46
Link Here
|
41 |
|
41 |
|
42 |
status_cmd="${name}_status" |
42 |
status_cmd="${name}_status" |
43 |
stop_cmd="${name}_stop" |
43 |
stop_cmd="${name}_stop" |
|
|
44 |
required_files="${carbon_conf} /usr/local/etc/carbon/storage-schemas.conf" |
44 |
|
45 |
|
45 |
command_interpreter="/usr/local/bin/python2.7" |
46 |
command_interpreter="/usr/local/bin/python2.7" |
46 |
command="/usr/local/bin/carbon-cache.py" |
47 |
command="/usr/local/bin/carbon-cache.py" |
Lines 48-55
Link Here
|
48 |
|
49 |
|
49 |
carbon_stop() { |
50 |
carbon_stop() { |
50 |
echo "Stopping $name" |
51 |
echo "Stopping $name" |
|
|
52 |
pids=`check_pidfile ${carbon_pidfile} ${command} ${command_interpreter}` |
51 |
|
53 |
|
52 |
/usr/local/bin/carbon-cache.py --config=${carbon_conf} --pidfile ${carbon_pidfile} stop |
54 |
/usr/local/bin/carbon-cache.py --config=${carbon_conf} --pidfile ${carbon_pidfile} stop |
|
|
55 |
wait_for_pids ${pids} |
53 |
} |
56 |
} |
54 |
|
57 |
|
55 |
carbon_status() { |
58 |
carbon_status() { |