Fix order and document user unit dirs
Fixup for 718880ba0d 'add a transient user unit directory'.
This commit is contained in:
@@ -162,13 +162,6 @@ static char** user_dirs(
|
||||
if (strv_extend(&r, config_home) < 0)
|
||||
goto fail;
|
||||
|
||||
if (runtime_dir)
|
||||
if (strv_extend(&r, runtime_dir) < 0)
|
||||
goto fail;
|
||||
|
||||
if (strv_extend(&r, runtime_unit_path) < 0)
|
||||
goto fail;
|
||||
|
||||
if (!strv_isempty(config_dirs))
|
||||
if (strv_extend_strv_concat(&r, config_dirs, "/systemd/user") < 0)
|
||||
goto fail;
|
||||
@@ -176,6 +169,13 @@ static char** user_dirs(
|
||||
if (strv_extend_strv(&r, (char**) config_unit_paths) < 0)
|
||||
goto fail;
|
||||
|
||||
if (runtime_dir)
|
||||
if (strv_extend(&r, runtime_dir) < 0)
|
||||
goto fail;
|
||||
|
||||
if (strv_extend(&r, runtime_unit_path) < 0)
|
||||
goto fail;
|
||||
|
||||
if (generator)
|
||||
if (strv_extend(&r, generator) < 0)
|
||||
goto fail;
|
||||
|
||||
Reference in New Issue
Block a user