Add shepherd and mcron services for some applications
This commit is contained in:
parent
ae24850dd7
commit
c16cfe3e48
4 changed files with 38 additions and 0 deletions
12
emacs/.config/shepherd/init.d/emacs.scm
Normal file
12
emacs/.config/shepherd/init.d/emacs.scm
Normal 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)
|
1
mbsync/.config/cron/mbsync.guile
Normal file
1
mbsync/.config/cron/mbsync.guile
Normal file
|
@ -0,0 +1 @@
|
|||
(job '(next-minute) "mbsync --all --quiet --verbose")
|
13
mcron/.config/shepherd/init.d/mcron.scm
Normal file
13
mcron/.config/shepherd/init.d/mcron.scm
Normal 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)
|
12
xbindkeys/.config/shepherd/init.d/xbindkeys.scm
Normal file
12
xbindkeys/.config/shepherd/init.d/xbindkeys.scm
Normal 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)
|
Loading…
Reference in a new issue