summaryrefslogtreecommitdiff
path: root/src/daemon.ggo
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon.ggo')
-rw-r--r--src/daemon.ggo70
1 files changed, 70 insertions, 0 deletions
diff --git a/src/daemon.ggo b/src/daemon.ggo
new file mode 100644
index 0000000..08c83cb
--- /dev/null
+++ b/src/daemon.ggo
@@ -0,0 +1,70 @@
+package "testd"
+version "0.0.1"
+usage "testd [options]"
+description "tests daemonizing on Unix without any functionality\n"
+
+section "Main Options"
+ option "foreground" f
+ "Do not daemonize, run in foreground, write to stdout/stderr"
+ optional
+
+ option "config-file" c
+ "The location of the configuration file of the daemon"
+ string typestr="file"
+ optional
+
+ option "debug" d
+ "Increase debug level (option can be given many times)"
+ optional multiple hidden
+
+ option "test" t
+ "Test the configuration without running the daemon"
+ optional
+
+section "Query Options"
+ option "list-modules" -
+ "List loaded modules"
+ optional hidden
+
+section "Daemon Options"
+ option "user" u
+ "User the daemon should run as"
+ string typestr="user"
+ optional hidden
+
+ option "group" g
+ "Group the daemon should run as"
+ string typestr="group"
+ optional hidden
+
+ option "pidfile" -
+ "Location of the pidfile (explicitly, normaly the system knows where to store them)"
+ string typestr="file"
+ optional hidden
+
+ option "syslog-facility" -
+ "System log facility to use for logging to system log"
+ optional hidden
+ typestr="facility"
+ values="KERN","USER","MAIL","DAEMON","AUTH","SYSLOG","LPR","NEWS","UUCP","CRON","AUTHPRIV","FTP"
+ default="DAEMON"
+
+ option "syslog-level" -
+ "Level for logging to system log"
+ optional hidden
+ typestr="level"
+ values="EMERG","ALERT","CRIT","ERR","WARNING","NOTICE","INFO","DEBUG","DEBUG1","DEBUG2","DEBUG3","DEBUG4","DEBUG5"
+ default="NOTICE"
+
+ option "logfile" -
+ "Name of a log file where to log to"
+ string typestr="file"
+ optional hidden
+
+ option "logfile-level" -
+ "Level for logging to the logfile"
+ optional hidden
+ typestr="level"
+ values="EMERG","ALERT","CRIT","ERR","WARNING","NOTICE","INFO","DEBUG","DEBUG1","DEBUG2","DEBUG3","DEBUG4","DEBUG5"
+ default="NOTICE"
+