Skip to content

Commit

Permalink
Merge pull request #333 from JackNewman12/config-reload
Browse files Browse the repository at this point in the history
Mark service dirty if the command line args have changed

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
  • Loading branch information
troglobit authored Jan 4, 2023
2 parents 9887003 + b9e94e4 commit 0de4578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0de4578

Please sign in to comment.