a6c42807cc
- Update to release 202: + 'systemctl list-jobs' got some polishing. '--type=' argument may now be passed more than once. 'systemctl list-sockets' has been added. + systemd gained a new unit 'systemd-static-nodes.service' that generates static device nodes earlier during boot, and can run in conjunction with udev. + systemd-nspawn now places all containers in the new /machine top-level cgroup directory in the name=systemd hierarchy. + bootchart can now store its data in the journal. + journactl can now take multiple --unit= and --user-unit= switches. + The cryptsetup logic now understands the "luks.key=" kernel command line switch. If a configured key file is missing, it will fallback to prompting the user. - Rebase some patches - Update handle-SYSTEMCTL_OPTIONS-environment-variable.patch to properly handle SYSTEMCTL_OPTIONS - Fix regression in the default for tmp auto-deletion (systemd-tmp-safe-defaults.patch, FATE#314974). - Add chromebook lid switch as a power switch to logind rule to enable suspend on lid close - Update to release 202: + 'systemctl list-jobs' got some polishing. '--type=' argument may now be passed more than once. 'systemctl list-sockets' has been added. + systemd gained a new unit 'systemd-static-nodes.service' OBS-URL: https://build.opensuse.org/request/show/172582 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=365
34 lines
1.3 KiB
Diff
34 lines
1.3 KiB
Diff
From: Frederic Crozat <fcrozat@suse.com>
|
|
Date: Fri, 30 Sep 2011 12:58:17 +0200
|
|
Subject: service: flags sysv service with detected pid as
|
|
RemainAfterExit=false
|
|
|
|
LSB header doesn't give pidfile, so all LSB initscripts have
|
|
RemainAfterExit=false, causing daemon termination to not be reported as
|
|
such by systemd. Checking at startup if daemon is still running for
|
|
sysv initscript to disable RemainAfterExit helps a lot.
|
|
Fixes https://bugzilla.novell.com/show_bug.cgi?id=721426
|
|
---
|
|
src/core/service.c | 7 ++++++-
|
|
1 file changed, 6 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/core/service.c b/src/core/service.c
|
|
index 08fc97c..5118b06 100644
|
|
--- a/src/core/service.c
|
|
+++ b/src/core/service.c
|
|
@@ -2072,8 +2072,13 @@ static void service_enter_running(Service *s, ServiceResult f) {
|
|
cgroup_ok = cgroup_good(s);
|
|
|
|
if ((main_pid_ok > 0 || (main_pid_ok < 0 && cgroup_ok != 0)) &&
|
|
- (s->bus_name_good || s->type != SERVICE_DBUS))
|
|
+ (s->bus_name_good || s->type != SERVICE_DBUS)) {
|
|
+#ifdef HAVE_SYSV_COMPAT
|
|
+ if (s->sysv_enabled && !s->pid_file)
|
|
+ s->remain_after_exit = false;
|
|
+#endif
|
|
service_set_state(s, SERVICE_RUNNING);
|
|
+ }
|
|
else if (s->remain_after_exit)
|
|
service_set_state(s, SERVICE_EXITED);
|
|
else
|