From: ludo@gnu.org (Ludovic Courtès)
To: Mark H Weaver <mhw@netris.org>
Cc: guix-devel@gnu.org
Subject: Re: Service activation snippets vs mounting filesystems
Date: Thu, 26 Feb 2015 19:34:57 +0100 [thread overview]
Message-ID: <871tlczfla.fsf@gnu.org> (raw)
In-Reply-To: <87wq36651b.fsf@netris.org> (Mark H. Weaver's message of "Tue, 24 Feb 2015 22:31:12 -0500")
Mark H Weaver <mhw@netris.org> skribis:
> For now, I was going to hack it into 'user-processes-service', since
> 'essential-services' arranges to add all filesystem services to the
> requirements for 'user-processes-service', and most other services
> depend on 'user-processes', so it seems well positioned for this cleanup
> task.
Yes, sounds good.
> However, I've now discovered a problem. Several services have
> activation scripts that create things in /var, and sometimes even in
> /var/run, one of the directories I want to clean. So, I must ensure
> that my cleanup happens before these activations.
>
> The problem is that these activation scripts are run before dmd is even
> launched, in 'operating-system-boot-script'. This implicitly assumes
> that everything created in the activation scripts is located on the root
> filesystem, since of course it happens before filesystems are mounted.
Right.
> Or am I missing something?
>
> Where is the right place to clean up /tmp and /var/run ?
Cleaning up /tmp poses no problem I guess, so really the only problem is
/var/run. So a first step would be a patch for /tmp cleanup. :-)
The activation script needs to run early because it creates user
accounts and such. It also needs to be separate and standalone so that
‘guix system reconfigure’ can run it.
Now, the ‘activate’ snippet of services could be moved out of the
activation script to the ‘start’ method of the dmd service, in dmd.conf.
That way, they would run after the “real” activation code.
WDYT?
Ludo’.
prev parent reply other threads:[~2015-02-26 18:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-25 3:31 Service activation snippets vs mounting filesystems Mark H Weaver
2015-02-25 23:15 ` Andreas Enge
2015-02-26 7:56 ` Mark H Weaver
2015-02-26 18:34 ` Ludovic Courtès [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871tlczfla.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guix-devel@gnu.org \
--cc=mhw@netris.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.