blob: 6b16623639300a9290d3a9041d1a2a8bb5a071a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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" <>)))
;; Send shepherd into the background
(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'.
(start-in-the-background '(habit-logs roam-semantic-db))
|