chiark / gitweb /
core: don't fail to run services in --user instances if $HOME is missing
[elogind.git] / src / core / unit.c
index 67425ba913e0e2ce317ad5b6e852c0983ca7ec36..514b6491ceead8301c679d8e22b3085add7fcad3 100644 (file)
@@ -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 &&