From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH 6/8] support: Rename state file. Date: Mon, 25 Jan 2016 16:11:03 +0100 Message-ID: <877fixlmns.fsf@gnu.org> References: <1453719021-13836-1-git-send-email-alezost@gmail.com> <1453719021-13836-7-git-send-email-alezost@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54692) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNinM-00054d-Pm for guix-devel@gnu.org; Mon, 25 Jan 2016 10:11:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aNinJ-0004ja-KJ for guix-devel@gnu.org; Mon, 25 Jan 2016 10:11:08 -0500 In-Reply-To: <1453719021-13836-7-git-send-email-alezost@gmail.com> (Alex Kost's message of "Mon, 25 Jan 2016 13:50:19 +0300") 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: Alex Kost Cc: guix-devel@gnu.org Alex Kost skribis: > * modules/shepherd/support.scm (default-persistency-state-file): Use > "shepherd" instead of "dmd". [..] > diff --git a/modules/shepherd/support.scm b/modules/shepherd/support.scm > index f161056..aae8b3c 100644 > --- a/modules/shepherd/support.scm > +++ b/modules/shepherd/support.scm > @@ -296,8 +296,8 @@ create a template configuration file if non exists." > ;; Saving the state on exit. > (define default-persistency-state-file > (if (zero? (getuid)) > - (string-append %localstatedir "/lib/misc/dmd-state") > - (string-append %user-config-dir "/dmd-state"))) > + (string-append %localstatedir "/lib/shepherd/state") > + (string-append %user-config-dir "/state"))) OK! Eventually, in the non-root case, we should have a %user-state-dir following the XDG specs to store this file. Ludo=E2=80=99.