]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: remove pidfile
authorSage Weil <sage.weil@dreamhost.com>
Sun, 12 Feb 2012 00:39:27 +0000 (16:39 -0800)
committerSage Weil <sage.weil@dreamhost.com>
Wed, 15 Feb 2012 05:03:53 +0000 (21:03 -0800)
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/ceph_mds.cc

index 0330cd1ab264112924985ffa6595db48f53d4df1..de887716adfee1e5f40981ae8e73e4eb26030a18 100644 (file)
@@ -34,11 +34,13 @@ using namespace std;
 #include "msg/SimpleMessenger.h"
 
 #include "common/Timer.h"
-#include "global/global_init.h"
-#include "global/signal_handler.h"
 #include "common/ceph_argparse.h"
 #include "common/pick_address.h"
 
+#include "global/global_init.h"
+#include "global/signal_handler.h"
+#include "global/pidfile.h"
+
 #include "mon/MonClient.h"
 
 #include "auth/KeyRing.h"
@@ -294,6 +296,8 @@ int main(int argc, const char **argv)
   mds->mds_lock.Lock();
   mds->mds_lock.Unlock();
 
+  pidfile_remove();
+
   // only delete if it was a clean shutdown (to aid memory leak
   // detection, etc.).  don't bother if it was a suicide.
   if (mds->is_stopped())