[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’.
- [SHEPHERD] [PATCH 0/8]: More dmd -> shepherd patches., Alex Kost, 2016/01/25
- [PATCH 2/8] tests: Rename 'dmd_pid' to 'shepherd_pid'., Alex Kost, 2016/01/25
- [PATCH 1/8] tests: misbehaved-client: Rename 'dmd' to 'root'., Alex Kost, 2016/01/25
- [PATCH 3/8] ChangeLog: Rename git repository., Alex Kost, 2016/01/25
- [PATCH 4/8] support: Rename 'make-dmd-user-module' to 'make-user-module'., Alex Kost, 2016/01/25
- [PATCH 6/8] support: Rename state file., Alex Kost, 2016/01/25
- [PATCH 5/8] Rename default system configuration file., Alex Kost, 2016/01/25
- [PATCH 7/8] utils: Rename 'dmd-gettext.scm' to 'shepherd-gettext.scm'., Alex Kost, 2016/01/25
[PATCH 8/8] Replace "dmd" with "shepherd" in comments and strings., Alex Kost, 2016/01/25