services: mcron: Add module for %user-log-dir.

* gnu/services/mcron.scm (mcron-shepherd-services)[modules]: Add
(shepherd support) for home service.
This commit is contained in:
Hilton Chain 2023-08-21 12:17:49 +08:00
parent e318b62df3
commit 552d070377
No known key found for this signature in database
GPG key ID: ACC66D09CA528292

View file

@ -165,6 +165,9 @@ (define (mcron-shepherd-services config)
(ice-9 popen) ;for the 'schedule' action (ice-9 popen) ;for the 'schedule' action
(ice-9 rdelim) (ice-9 rdelim)
(ice-9 match) (ice-9 match)
,(if home-service?
'((shepherd support) #:select (%user-log-dir))
'())
,@%default-modules)) ,@%default-modules))
(start #~(make-forkexec-constructor (start #~(make-forkexec-constructor
(list #$(file-append mcron "/bin/mcron") (list #$(file-append mcron "/bin/mcron")