From be7be9e8dd9411d8d5bcea75c506326393ea2842 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Mon, 4 Jan 2016 22:58:05 +0100 Subject: services: Move /tmp cleanup to a separate service. * gnu/services.scm (compute-boot-script): Remove /tmp and /var/run deletion code from here. (cleanup-gexp): New procedure with /tmp and /var/run deletion code formerly in 'compute-boot-script'. (cleanup-service-type): New variable. * gnu/system.scm (essential-services): Add an instance of CLEANUP-SERVICE-TYPE. --- gnu/system.scm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gnu/system.scm') diff --git a/gnu/system.scm b/gnu/system.scm index 6dfcc0fe3a..4aedb7ee36 100644 --- a/gnu/system.scm +++ b/gnu/system.scm @@ -295,8 +295,12 @@ (define known-fs %boot-service ;; %DMD-ROOT-SERVICE must come first so that the gexp that execs - ;; dmd comes last in the boot script (XXX). - %dmd-root-service %activation-service + ;; dmd comes last in the boot script (XXX). Likewise, the cleanup + ;; service must come last so that its gexp runs before activation + ;; code. + %dmd-root-service + %activation-service + (service cleanup-service-type #f) (pam-root-service (operating-system-pam-services os)) (account-service (append (operating-system-accounts os) -- cgit v1.2.3