From: Dongmao Zhang Date: Tue, 25 Nov 2014 07:34:46 +0000 (+0800) Subject: Remove pidfile and asok after stopping ceph X-Git-Tag: v0.90~43^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=24eb5647685ebba5e04e0171fae24033badca656;p=ceph.git Remove pidfile and asok after stopping ceph Signed-off-by: Dongmao Zhang --- diff --git a/src/init-ceph.in b/src/init-ceph.in index fdbcc2df401b..4bfbf2878ad0 100644 --- a/src/init-ceph.in +++ b/src/init-ceph.in @@ -409,6 +409,8 @@ for name in $what; do get_conf post_stop "" "post stop command" [ -n "$pre_stop" ] && do_cmd "$pre_stop" stop_daemon $name ceph-$type $pid_file + [ -n "$pidfile" ] && rm -f $pidfile + [ -n "$asok" ] && rm -f $asok [ -n "$post_stop" ] && do_cmd "$post_stop" [ -n "$lockfile" ] && [ "$?" -eq 0 ] && rm -f $lockfile if [ $dofsumount -eq 1 ] && [ -n "$fs_devs" ]; then