diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-02-12 12:21:16 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-02-12 12:21:16 +0100 |
commit | 4c08c8242a687e00b289e948ccd07b96f0bc4866 (patch) | |
tree | 98c5a144940529cb0f7cb3ae8910ce75799c3edf /src/core/unit.c | |
parent | a38d99451f2bf8026ec51aee91662292e823c6a8 (diff) |
core: don't fail to run services in --user instances if $HOME is missing
Otherwise we cannot even invoke systemd-exit.service anymore, thus not
even exit.
https://bugs.freedesktop.org/show_bug.cgi?id=83100
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=759320
Diffstat (limited to 'src/core/unit.c')
-rw-r--r-- | src/core/unit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/unit.c b/src/core/unit.c index 67425ba913..514b6491ce 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -3178,6 +3178,10 @@ int unit_patch_contexts(Unit *u) { r = get_home_dir(&ec->working_directory); if (r < 0) return r; + + /* Allow user services to run, even if the + * home directory is missing */ + ec->working_directory_missing_ok = true; } if (u->manager->running_as == SYSTEMD_USER && |