summaryrefslogtreecommitdiff
path: root/src/biruda.ggo
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2014-09-13 17:05:54 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2014-09-13 17:05:54 +0200
commit6627513d260e807f99fd02cc6571601d794437de (patch)
tree0a434b98f24af212671f952ee211a2382f223c2c /src/biruda.ggo
downloadbiruda-6627513d260e807f99fd02cc6571601d794437de.tar.gz
biruda-6627513d260e807f99fd02cc6571601d794437de.tar.bz2
added command line and config parsing
Diffstat (limited to 'src/biruda.ggo')
-rw-r--r--src/biruda.ggo43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/biruda.ggo b/src/biruda.ggo
new file mode 100644
index 0000000..7d4c215
--- /dev/null
+++ b/src/biruda.ggo
@@ -0,0 +1,43 @@
+package "Biruda build service"
+version "0.0.1"
+usage "biruda [options]"
+description "Biruda node"
+
+section "Main Options"
+ option "config-file" c
+ "the location of the service configuration file (optional, default is /etc/biruda/biruda.conf)"
+ string typestr="file"
+ optional
+
+ option "test" t
+ "test the configuration, don't start the service"
+ optional
+
+ option "print" p
+ "print the configuration, don't start the service"
+ optional
+
+ option "verbose" v
+ "increase verbosity (can be given multiple times)"
+ optional multiple
+
+section "Unix Daemon"
+
+ option "foreground" f
+ "run in foreground, don't daemonize"
+ optional
+
+ option "pidfile" -
+ "where to store the PID of the daemon"
+ string typestr="filename"
+ optional
+
+ option "group" -
+ "the unpriviledged group the daemon should run as"
+ string typestr="group"
+ optional
+
+ option "user" -
+ "the unpriviledged user the daemon should run as"
+ string typestr="user"
+ optional