Only default to SIGHUP support on daemons

When parsing a service configuration, only default to SIGHUP support
if the service is a daemon. inetd services must be stop/started on
change.
This commit is contained in:
Tobias Waldekranz committed 2016-02-19 12:50:24 +01:00
1 parent c6055031b8
commit c41016ef32
1 file changed
+2 -1
+2 -1
View File
@@ -125,7 +125,8 @@ void conf_parse_cond(svc_t *svc, char *cond)
}
/* By default we assume UNIX daemons support SIGHUP */
svc->sighup = 1;
if (svc_is_daemon(svc))
svc->sighup = 1;
if (!cond)
return;