all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: Andreas Enge <andreas@enge.fr>
Cc: guix-devel@gnu.org
Subject: Re: Service activation snippets vs mounting filesystems
Date: Thu, 26 Feb 2015 02:56:59 -0500	[thread overview]
Message-ID: <871tldyuk4.fsf@netris.org> (raw)
In-Reply-To: <20150225231540.GA19841@debian> (Andreas Enge's message of "Thu, 26 Feb 2015 00:15:40 +0100")

Andreas Enge <andreas@enge.fr> writes:

> On Tue, Feb 24, 2015 at 10:31:12PM -0500, Mark H Weaver wrote:
>> Where is the right place to clean up /tmp and /var/run ?
>
> Would it be easier to do so when shutting the machine down?

My primary motivation for doing this is to ensure a clean startup if the
system crashes, power is lost, resume from suspend fails, etc, so
cleaning up during shutdown wouldn't help.  In practice, when my system
fails to shut down cleanly, many services fail to start, and I have to
manually clean up stale files in /var/run and /tmp, and then either
enable and start several dmd services, or reboot.

Anyway, even without adding this cleanup code, there's already a
problem: the service activations are performed when only the root
filesystem is mounted, thus implicitly assuming that all of the
files/directories created during those activations are on the root
partition.

     Mark

  reply	other threads:[~2015-02-26  7:57 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 [this message]
2015-02-26 18:34 ` Ludovic Courtès

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=871tldyuk4.fsf@netris.org \
    --to=mhw@netris.org \
    --cc=andreas@enge.fr \
    --cc=guix-devel@gnu.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.