From c41016ef3212c9ada79ce9ecf970766b2ae0c473 Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Fri, 19 Feb 2016 12:50:24 +0100 Subject: [PATCH] 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. --- conf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conf.c b/conf.c index 66831c5b..e8f66476 100644 --- a/conf.c +++ b/conf.c @@ -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;