diff options
author | David Oberhollenzer <goliath@infraroot.at> | 2019-03-20 15:27:13 +0100 |
---|---|---|
committer | David Oberhollenzer <goliath@infraroot.at> | 2019-03-20 15:44:14 +0100 |
commit | e21840cfced42425b9e742fbd199a19369d0b614 (patch) | |
tree | 9dfe35ebf8624d95d0b144c3d28ea4fa262dd379 /lib/init/rdsvc.c | |
parent | 390175c4062b414520129f9bbdf6a15cdb47d210 (diff) |
initd: don't start runsvc for services without exec block
First in rdsvc, tag the services that *do* have exec lines, even if we don't
read them.
Second, if a service does not have that flag set, don't try to execute it.
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
Diffstat (limited to 'lib/init/rdsvc.c')
-rw-r--r-- | lib/init/rdsvc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/init/rdsvc.c b/lib/init/rdsvc.c index b86a27b..7ce68e3 100644 --- a/lib/init/rdsvc.c +++ b/lib/init/rdsvc.c @@ -81,6 +81,8 @@ static int svc_exec(void *user, char *arg, rdline_t *rd, int flags) service_t *svc = user; exec_t *e, *end; + svc->flags |= SVC_FLAG_HAS_EXEC; + if (flags & RDSVC_NO_EXEC) return 0; |