32#include "../Signals/signal.h"
53 int main(
int argc,
char **argv);
69 std::shared_ptr<Service_Impl> impl;
Service/daemon class.
Definition service.h:43
virtual void service_start(std::vector< std::string > &args)=0
Called when the service is asked to start.
int main(int argc, char **argv)
Process command line and run service.
friend class Service_Impl
Definition service.h:71
virtual void service_stop()=0
Called when the service is asked to stop.
const std::string & get_service_name() const
Returns the service name.
virtual void service_reload()=0
Called when the service is asked to reload its configuration.
Service(const std::string &service_name)
Constructs a service object.