f05802d2fe
add: 1008-udev-path_id-handle-Hyper-V-devices.patch - keymap: Update the list of Samsung Series 9 models add: 1009-keymap-Update-the-list-of-Samsung-Series-9-models.patch - keymap: Add Samsung 700T add: 1010-keymap-Add-Samsung-700T.patch - libudev: avoid leak during realloc failure add: 1011-libudev-avoid-leak-during-realloc-failure.patch - libudev: do not resolve $attr{device} symlinks add: 1012-libudev-do-not-resolve-attr-device-symlinks.patch - libudev: validate 'udev' argument to udev_enumerate_new() add: 1013-libudev-validate-udev-argument-to-udev_enumerate_new.patch - udev: fix whitespace add: 1014-udev-fix-whitespace.patch - udev: properly handle symlink removal by 'change' event add: 1015-udev-properly-handle-symlink-removal-by-change-event.patch - udev: builtin - do not fail builtin initialization if one of them returns an error add: 1016-udev-builtin-do-not-fail-builtin-initialization-if-o.patch - udev: use usec_t and now() add: 1017-udev-use-usec_t-and-now.patch closing an non-existent dbus connection and getting assertion failures. - udev: path_id - handle Hyper-V devices add: 1008-udev-path_id-handle-Hyper-V-devices.patch - keymap: Update the list of Samsung Series 9 models add: 1009-keymap-Update-the-list-of-Samsung-Series-9-models.patch - keymap: Add Samsung 700T add: 1010-keymap-Add-Samsung-700T.patch OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=327
34 lines
1.4 KiB
Diff
34 lines
1.4 KiB
Diff
From 700b1261115a67392014ff2c887a9cffc28108ab Mon Sep 17 00:00:00 2001
|
|
From: Frederic Crozat <fcrozat@suse.com>
|
|
Date: Fri, 30 Sep 2011 12:58:17 +0200
|
|
Subject: [PATCH] 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/service.c | 8 +++++++-
|
|
1 files changed, 7 insertions(+), 1 deletions(-)
|
|
|
|
Index: systemd-195/src/core/service.c
|
|
===================================================================
|
|
--- systemd-195.orig/src/core/service.c
|
|
+++ systemd-195/src/core/service.c
|
|
@@ -2136,8 +2136,13 @@ static void service_enter_running(Servic
|
|
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
|