mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-12 09:17:44 +03:00
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).
This commit is contained in:
parent
5db35d0672
commit
f878830392
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user