diff options
-rw-r--r-- | gnu/services/mcron.scm | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gnu/services/mcron.scm b/gnu/services/mcron.scm index d9627c6bd0..ca9a54a041 100644 --- a/gnu/services/mcron.scm +++ b/gnu/services/mcron.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org> +;;; Copyright © 2020 Marcin Karpezo <sirmacik@wioo.waw.pl> ;;; ;;; This file is part of GNU Guix. ;;; @@ -128,6 +129,12 @@ files." (actions (list (shepherd-schedule-action mcron files))))))))) +(define (mcron-service-activation config) + (with-imported-modules '((guix build utils)) + #~(begin + (use-modules (guix build utils)) + (mkdir-p "/var/cron/tabs")))) + (define mcron-service-type (service-type (name 'mcron) (description @@ -137,7 +144,10 @@ files." mcron-shepherd-services) (service-extension profile-service-type (compose list - mcron-configuration-mcron)))) + mcron-configuration-mcron)) + (service-extension activation-service-type + mcron-service-activation))) + (compose concatenate) (extend (lambda (config jobs) (mcron-configuration |