get_name_list "$@"
# Reverse the order if we are stopping
-if [ "$command" = "stop" ]; then
+
+if [ "$command" = "stop" -o "$command" = "onestop"]; then
for f in $what; do
new_order="$f $new_order"
done
get_conf pid_file "$run_dir/$type.$id.pid" "pid file"
- if [ "$command" = "start" ]; then
+ if [ "$command" = "start" -o "$command" = "onestart" ]; then
if [ -n "$pid_file" ]; then
do_cmd "mkdir -p "`dirname $pid_file`
cmd="$cmd --pid-file $pid_file"
get_conf asok "$run_dir/$cluster-$type.$id.asok" "admin socket"
case "$command" in
- start)
+ start|onestart)
# Increase max_open_files, if the configuration calls for it.
get_conf max_open_files "32768" "max open files"
[ -n "$lockfile" ] && [ "$?" -eq 0 ] && touch $lockfile
;;
- stop)
+ stop|onestop)
get_conf pre_stop "" "pre stop command"
get_conf post_stop "" "post stop command"
[ -n "$pre_stop" ] && do_cmd "$pre_stop"
signal_daemon $name ceph-$type $pid_file -1 "Reloading"
;;
- restart)
+ restart|onerestart)
$0 $options stop $name
$0 $options start $name
;;