]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Remove pidfile and asok after stopping ceph 3002/head
authorDongmao Zhang <deanraccoon@gmail.com>
Tue, 25 Nov 2014 07:34:46 +0000 (15:34 +0800)
committerDongmao Zhang <deanraccoon@gmail.com>
Tue, 25 Nov 2014 10:04:37 +0000 (18:04 +0800)
Signed-off-by: Dongmao Zhang <deanraccoon@gmail.com>
src/init-ceph.in

index fdbcc2df401b30b6ebb2444f59d9b29ea82676e0..4bfbf2878ad0f16f2a75dcd51084dbaf00204030 100644 (file)
@@ -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