diff options
author | David Thompson <dthompson2@worcester.edu> | 2015-05-04 21:00:00 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2015-05-04 21:00:00 -0400 |
commit | f98e299e911ff4e801a5cd2a4f81964408f491ac (patch) | |
tree | b79613f01c8a8e1b4965d042092d283019b8db85 | |
parent | 32d09ff3cc9c0dee6e67fc3e0180c99391f6d891 (diff) |
Add dmd config.
-rw-r--r-- | dotfiles/dmd.d/init.scm | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/dotfiles/dmd.d/init.scm b/dotfiles/dmd.d/init.scm new file mode 100644 index 0000000..ff91b05 --- /dev/null +++ b/dotfiles/dmd.d/init.scm @@ -0,0 +1,17 @@ +(define (simple-service program) + (make <service> + #:provides (list (string->symbol program)) + #:requires '() + #:start (make-forkexec-constructor (list program)) + #:stop (make-kill-destructor))) + +(register-services + (simple-service "offlineimap") + (simple-service "mpd") + (simple-service "mpdscribble")) + +;; Send dmd into the background +(action 'dmd 'daemonize) + +;; Services to start when dmd starts: +(for-each start '(offlineimap mpd mpdscribble)) |