#include "mon/MonClient.h"
#include "osdc/Objecter.h"
-#include "DaemonServer.h"
-#include "PyModules.h"
-
-#include "DaemonState.h"
-#include "ClusterState.h"
class MMgrMap;
class Mgr;
Mutex lock;
SafeTimer timer;
- std::unique_ptr<Mgr> active_mgr;
+ std::shared_ptr<Mgr> active_mgr;
+
+ int orig_argc;
+ const char **orig_argv;
std::string state_str();
void handle_mgr_map(MMgrMap *m);
void _update_log_config();
+ void send_beacon();
+
+ bool available_in_map;
public:
- MgrStandby();
+ MgrStandby(int argc, const char **argv);
~MgrStandby() override;
bool ms_dispatch(Message *m) override;
int init();
void shutdown();
- void usage() {}
+ void respawn();
int main(vector<const char *> args);
void handle_signal(int signum);
- void send_beacon();
+ void tick();
};
#endif