summaryrefslogtreecommitdiff
path: root/shepherd
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2021-01-13 21:23:37 +0100
committerEkaitz Zarraga <ekaitz@elenq.tech>2021-01-13 23:48:04 +0100
commit64b8b0c0ea9776f4d8002af1f57bf846dfe2697e (patch)
treeabb9f67882f1e88ef23f0d8de0c6ae7dda960967 /shepherd
parent42a65db0334ea603cbe24f29898e62a9fdda678e (diff)
Add shepherd user services
Diffstat (limited to 'shepherd')
-rw-r--r--shepherd/shepherd/init.scm14
1 files changed, 14 insertions, 0 deletions
diff --git a/shepherd/shepherd/init.scm b/shepherd/shepherd/init.scm
new file mode 100644
index 0000000..8ef2166
--- /dev/null
+++ b/shepherd/shepherd/init.scm
@@ -0,0 +1,14 @@
+;; init.scm -- default shepherd configuration file.
+
+;; Services known to shepherd:
+;; Add new services (defined using 'make <service>') to shepherd here by
+;; providing them as arguments to 'register-services'.
+(register-services)
+
+;; Send shepherd into the background
+(action 'shepherd 'daemonize)
+
+;; Services to start when shepherd starts:
+;; Add the name of each service that should be started to the list
+;; below passed to 'for-each'.
+(for-each start '())