diff options
author | Oscar Najera <hi@oscarnajera.com> | 2024-12-21 12:30:38 +0100 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2024-12-21 12:30:38 +0100 |
commit | f7193ea090891532ec5e6f2abbd6f805bdfbbf1f (patch) | |
tree | ae3b74fdf024e2e67bd63ddb3a560ca3d1a5331a /config/shepherd/init.scm | |
parent | 1979a19feb55dae81710ac5c00802e39f69365bf (diff) | |
download | dotfiles-f7193ea090891532ec5e6f2abbd6f805bdfbbf1f.tar.gz dotfiles-f7193ea090891532ec5e6f2abbd6f805bdfbbf1f.tar.bz2 dotfiles-f7193ea090891532ec5e6f2abbd6f805bdfbbf1f.zip |
update to shepherd 1.0
Diffstat (limited to 'config/shepherd/init.scm')
-rw-r--r-- | config/shepherd/init.scm | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/config/shepherd/init.scm b/config/shepherd/init.scm index 3d47bd4..6b16623 100644 --- a/config/shepherd/init.scm +++ b/config/shepherd/init.scm @@ -1,25 +1,20 @@ ;; init.scm -- default shepherd configuration file. (use-modules ((ice-9 ftw) #:select (scandir)) + (shepherd service) (srfi srfi-26)) ;; 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") - (cut string-suffix? ".scm" <>))) - - -;; Services known to shepherd: -;; Add new services (defined using 'make <service>') to shepherd here by -;; providing them as arguments to 'register-services'. -(register-services) + (lambda (file) + (load (string-append "init.d/" file))) + (scandir (string-append (dirname (current-filename)) "/init.d") + (cut string-suffix? ".scm" <>))) ;; Send shepherd into the background -(action 'shepherd 'daemonize) +(perform-service-action root-service '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 '(habit-logs roam-semantic-db)) +(start-in-the-background '(habit-logs roam-semantic-db)) |