summaryrefslogtreecommitdiff
path: root/server/src/daemon.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/daemon.h')
-rw-r--r--server/src/daemon.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/server/src/daemon.h b/server/src/daemon.h
index 89c3f1c..ef6eecc 100644
--- a/server/src/daemon.h
+++ b/server/src/daemon.h
@@ -3,7 +3,7 @@
* daemon.h
*
* Thu Jun 9 10:27:59 CEST 2005
- * Copyright 2005 Bent Bisballe
+ * Copyright 2005 Bent Bisballe Nyeng
* deva@aasimon.org
****************************************************************************/
@@ -28,6 +28,8 @@
#include <sys/types.h>
+#include <string>
+
class Daemon {
public:
Daemon();
@@ -36,10 +38,12 @@ public:
/**
* Use NOBODY_GROUP and NOBODY_USER if no privileges are needed to run.
*/
- int run(const char* user, const char* group, bool detach = true);
+ int run(const char* user, const char* group, bool detach = true,
+ std::string pidfile = "");
private:
virtual int daemon_main() = 0;
+
};
#endif/*__DAEMON_H__*/