diff options
author | Marcin Karpezo <sirmacik@wioo.waw.pl> | 2020-04-28 23:28:53 +0200 |
---|---|---|
committer | Guix Patches Tester <> | 2020-04-29 01:50:19 +0100 |
commit | 08a8dc9e507b404a17a0896b20996be0ebbf4c05 (patch) | |
tree | c5c8fadf6f6780351dc3fb1d4af8d665a5d4f212 | |
parent | f93eebbf9ca8477404827f44daf3121b11120e99 (diff) | |
download | patches-series-3739.tar patches-series-3739.tar.gz |
mcron, create /var/cron/tabs on activationseries-3739
-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 |