core: add {State,Cache,Log,Configuration}Directory= (#6384)
This introduces {State,Cache,Log,Configuration}Directory= those are
similar to RuntimeDirectory=. They create the directories under
/var/lib, /var/cache/, /var/log, or /etc, respectively, with the mode
specified in {State,Cache,Log,Configuration}DirectoryMode=.
This also fixes #6391.
This commit is contained in:
committed by
Lennart Poettering
parent
5230e31918
commit
3536f49e8f
@@ -151,6 +151,18 @@ const char* exit_status_to_string(int status, ExitStatusLevel level) {
|
||||
|
||||
case EXIT_KEYRING:
|
||||
return "KEYRING";
|
||||
|
||||
case EXIT_STATE_DIRECTORY:
|
||||
return "STATE_DIRECTORY";
|
||||
|
||||
case EXIT_CACHE_DIRECTORY:
|
||||
return "CACHE_DIRECTORY";
|
||||
|
||||
case EXIT_LOGS_DIRECTORY:
|
||||
return "LOGS_DIRECTORY";
|
||||
|
||||
case EXIT_CONFIGURATION_DIRECTORY:
|
||||
return "CONFIGURATION_DIRECTORY";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -83,6 +83,10 @@ enum {
|
||||
EXIT_CHOWN,
|
||||
EXIT_SMACK_PROCESS_LABEL,
|
||||
EXIT_KEYRING,
|
||||
EXIT_STATE_DIRECTORY,
|
||||
EXIT_CACHE_DIRECTORY,
|
||||
EXIT_LOGS_DIRECTORY, /* 240 */
|
||||
EXIT_CONFIGURATION_DIRECTORY,
|
||||
};
|
||||
|
||||
typedef enum ExitStatusLevel {
|
||||
|
||||
Reference in New Issue
Block a user