Add shepherd and mcron services for some applications

This commit is contained in:
Tom Willemse 2022-05-17 21:58:35 -07:00
parent ae24850dd7
commit c16cfe3e48
4 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,12 @@
(define emacs
(make <service>
#:provides '(emacs)
#:docstring "Run `emacs --daemon'"
#:start (make-forkexec-constructor
'("emacs" "--fg-daemon")
#:log-file (string-append (getenv "HOME") "/.logs/emacs.log"))
#:stop (make-kill-destructor)))
(register-services emacs)
(start emacs)

View file

@ -0,0 +1 @@
(job '(next-minute) "mbsync --all --quiet --verbose")

View file

@ -0,0 +1,13 @@
(define mcron
(make <service>
#:provides '(mcron)
#:docstring "Run `mcron'"
#:start (make-forkexec-constructor
'("mcron")
#:log-file (string-append (getenv "HOME") "/.logs/mcron.log"))
#:stop (make-kill-destructor)
#:respawn? #t))
(register-services mcron)
(start mcron)

View file

@ -0,0 +1,12 @@
(define xbindkeys
(make <service>
#:provides '(xbindkeys)
#:docstring "Run `xbindkeys'"
#:start (make-forkexec-constructor
'("xbindkeys" "--nodaemon")
#:log-file (string-append (getenv "HOME") "/.logs/xbindkeys.log"))
#:stop (make-kill-destructor)))
(register-services xbindkeys)
(start xbindkeys)