mirror of
https://github.com/troglobit/finit.git
synced 2026-10-18 10:59:34 +00:00
Merge pull request #333 from JackNewman12/config-reload
Mark service dirty if the command line args have changed Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -1666,7 +1666,7 @@ int service_register(int type, char *cfg, struct rlimit rlimit[], char *file)
|
||||
parse_cgroup(svc, cgroup);
|
||||
|
||||
/* New, recently modified or unchanged ... used on reload. */
|
||||
if ((file && conf_changed(file)) || conf_changed(svc_getenv(svc)))
|
||||
if ((file && conf_changed(file)) || conf_changed(svc_getenv(svc)) || svc->args_dirty)
|
||||
svc_mark_dirty(svc);
|
||||
else
|
||||
svc_mark_clean(svc);
|
||||
|
||||
Reference in new issue
Block a user