diff --git a/src/core/execute.c b/src/core/execute.c index 4595bb12dc..89dbf6fbd2 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -3406,8 +3406,7 @@ static int exec_child( our_env, pass_env, context->environment, - files_env, - NULL); + files_env); if (!accum_env) { *exit_status = EXIT_MEMORY; return log_oom(); diff --git a/units/systemd-network-generator.service.in b/units/systemd-network-generator.service.in index 1a70ad70e9..070d87e154 100644 --- a/units/systemd-network-generator.service.in +++ b/units/systemd-network-generator.service.in @@ -15,6 +15,7 @@ Before=network-pre.target [Service] Type=oneshot +RemainAfterExit=yes ExecStart=@rootlibexecdir@/systemd-network-generator [Install] diff --git a/units/systemd-vconsole-setup.service.in b/units/systemd-vconsole-setup.service.in index f4178f495a..9042521c9d 100644 --- a/units/systemd-vconsole-setup.service.in +++ b/units/systemd-vconsole-setup.service.in @@ -16,4 +16,5 @@ ConditionPathExists=/dev/tty0 [Service] Type=oneshot +RemainAfterExit=yes ExecStart=@rootlibexecdir@/systemd-vconsole-setup