From 24eb5647685ebba5e04e0171fae24033badca656 Mon Sep 17 00:00:00 2001 From: Dongmao Zhang Date: Tue, 25 Nov 2014 15:34:46 +0800 Subject: [PATCH] Remove pidfile and asok after stopping ceph Signed-off-by: Dongmao Zhang --- src/init-ceph.in | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.47.3