all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Service activation snippets vs mounting filesystems
@ 2015-02-25  3:31 Mark H Weaver
  2015-02-25 23:15 ` Andreas Enge
  2015-02-26 18:34 ` Ludovic Courtès
  0 siblings, 2 replies; 4+ messages in thread
From: Mark H Weaver @ 2015-02-25  3:31 UTC (permalink / raw)
  To: guix-devel

Hello Guix,

I wanted to add a service to clean /tmp and /var/run at boot time, and
have run into several problems.

First, I see no way to add a service that will be run early at boot time
without modifying Guix itself.  In this case, it should run after
mounting filesystems but before anything else is started.  It would be
good to have a way to express such a constraint without modifying all of
the existing services.

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.

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.

Or am I missing something?

Where is the right place to clean up /tmp and /var/run ?

     Mark

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-02-26 18:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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.