diff options
author | Óscar Nájera <hi@oscarnajera.com> | 2021-11-15 09:53:33 +0100 |
---|---|---|
committer | Óscar Nájera <hi@oscarnajera.com> | 2021-11-15 09:53:33 +0100 |
commit | effd36042cf3ff8397cb20dfbfa0c647e8f2c087 (patch) | |
tree | f6e07ffa6d9ccfed901c6ca5c604c6daac7f2530 /config/shepherd | |
parent | f54bde6c34139c26408fdde524b03fa1d228672f (diff) | |
download | dotfiles-effd36042cf3ff8397cb20dfbfa0c647e8f2c087.tar.gz dotfiles-effd36042cf3ff8397cb20dfbfa0c647e8f2c087.tar.bz2 dotfiles-effd36042cf3ff8397cb20dfbfa0c647e8f2c087.zip |
Shepherd init
Diffstat (limited to 'config/shepherd')
-rw-r--r-- | config/shepherd/init.scm | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/config/shepherd/init.scm b/config/shepherd/init.scm new file mode 100644 index 0000000..7b548e9 --- /dev/null +++ b/config/shepherd/init.scm @@ -0,0 +1,25 @@ +;; init.scm -- default shepherd configuration file. + +(use-modules ((ice-9 ftw) #:select (scandir))) + +;; Load all the files in the directory 'init.d' with a suffix '.scm'. +(for-each + (lambda (file) + (load (string-append "init.d/" file))) + (scandir (string-append (dirname (current-filename)) "/init.d") + (lambda (file) + (string-suffix? ".scm" 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 '()) |