mds: remove pidfile

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
This commit is contained in:
Sage Weil 2012-02-11 16:39:27 -08:00
parent bbe5cd755f
commit 395dc659b9

View 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())