guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 6/8] support: Rename state file.


From: Ludovic Courtès
Subject: Re: [PATCH 6/8] support: Rename state file.
Date: Mon, 25 Jan 2016 16:11:03 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Alex Kost <address@hidden> 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’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]