From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: Re: Service activation snippets vs mounting filesystems Date: Thu, 26 Feb 2015 02:56:59 -0500 Message-ID: <871tldyuk4.fsf@netris.org> References: <87wq36651b.fsf@netris.org> <20150225231540.GA19841@debian> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44401) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQtJc-0001Td-GT for guix-devel@gnu.org; Thu, 26 Feb 2015 02:57:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQtJZ-0000DT-7Z for guix-devel@gnu.org; Thu, 26 Feb 2015 02:57:00 -0500 Received: from world.peace.net ([50.252.239.5]:42298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQtJZ-0000Cd-3X for guix-devel@gnu.org; Thu, 26 Feb 2015 02:56:57 -0500 In-Reply-To: <20150225231540.GA19841@debian> (Andreas Enge's message of "Thu, 26 Feb 2015 00:15:40 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Andreas Enge Cc: guix-devel@gnu.org Andreas Enge 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