X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Scheduler%2FDaemon.hh;h=3526cb3f760d698807b07d2ffba9c96e343af468;hb=44c966bc9d744d0926cffd5184fdb77a62564c16;hp=ab70527cc37e99af6506f50359aacd183011b0de;hpb=9fabfe82429b675009a8109b03ccbd5e13f6ee0a;p=senf.git diff --git a/Scheduler/Daemon.hh b/Scheduler/Daemon.hh index ab70527..3526cb3 100644 --- a/Scheduler/Daemon.hh +++ b/Scheduler/Daemon.hh @@ -135,13 +135,14 @@ namespace senf { protected: Daemon(); + virtual void configure(); ///< Called before forking to configure the daemon class + # ifdef DOXYGEN protected: # else private: # endif - virtual void configure(); ///< Called before forking to configure the daemon class virtual void main(); ///< Called after forking to execute the main application /**< The default implementation will call init(), detach() and then run(). It is preferred to override init() and @@ -161,6 +162,7 @@ namespace senf { implementation is not overridden. */ private: + void openLog(); void fork(); bool pidfileCreate(); @@ -168,6 +170,8 @@ namespace senf { char const ** argv_; bool daemonize_; + std::string stdoutLog_; + std::string stderrLog_; int stdout_; int stderr_; std::string pidfile_;