Home | History | Annotate | Download | only in daemons

Lines Matching refs:Daemon

21 // Daemon is a simple base class for system daemons. It provides a lot
24 // You can use this class directly to implement your daemon or you can
26 // brillo::Daemon. Override some of the virtual methods provide to fine-tune
27 // its behavior to suit your daemon's needs.
28 class BRILLO_EXPORT Daemon : public AsynchronousSignalHandlerInterface {
30 Daemon();
31 virtual ~Daemon();
33 // Performs proper initialization of the daemon and runs the message loop.
34 // Blocks until the daemon is finished. The return value is the error
35 // code that should be returned from daemon's main(). Returns EX_OK (0) on
42 // the message loop is running (that is, during Daemon::Run() call). Calling
47 // |exit_code| is the status code to be returned when the daemon process
53 // Register/unregister custom signal handlers for the daemon. The semantics
66 // is aborted and Daemon::Run() exits early.
69 // Called when the message loops exits and before Daemon::Run() returns.
77 // daemon could reset/reload the configuration and re-initialize its state
79 // Return true if the signal was processed successfully and the daemon
80 // reset its configuration. Returning false will force the daemon to
83 // the daemon, so do not call the base implementation of OnRestart() from
109 DISALLOW_COPY_AND_ASSIGN(Daemon);