mirror of
https://github.com/ceph/ceph
synced 2025-01-17 00:12:31 +00:00
mds: remove pidfile
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
This commit is contained in:
parent
bbe5cd755f
commit
395dc659b9
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user