summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2011-07-05 10:14:12 +0200
committerMichal Schmidt <mschmidt@redhat.com>2011-07-05 10:17:42 +0200
commitf8788303929c27d0b7f7e4b8ffe22767a3d0ff67 (patch)
treec43c33488b530e717b140281fa3ee8c19b4ccbcb /src
parent5db35d0672949f2d418b4f5dfad2975c4b7e7691 (diff)
service: 'pidfile:' in SysV chkconfig header implies a real daemon
The presence of the chkconfig "pidfile:" header in the initscript is an excellent indication that it's not a oneshot script (like iptables), but a real daemon (like httpd).
Diffstat (limited to 'src')
-rw-r--r--src/service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c
index 165655eb12..5c7e62f3b0 100644
--- a/src/service.c
+++ b/src/service.c
@@ -843,7 +843,7 @@ static int service_load_sysv_path(Service *s, const char *path) {
/* Special setting for all SysV services */
s->type = SERVICE_FORKING;
- s->remain_after_exit = true;
+ s->remain_after_exit = !s->pid_file;
s->restart = SERVICE_RESTART_NO;
s->exec_context.std_output =
(s->meta.manager->sysv_console || s->exec_context.std_input == EXEC_INPUT_TTY)