Do a full restart rather than HUP if command line of a service has changed

By keeping track of when a full restart is needed, Finit can relieve
the user of having to track modifications to service configuration. This
also makes initctl reload easier to explain and reason about as the effect
of a reload should now be that any configuration updates to services will
be fully "commited" by initctl reload.

Signed-off-by: Jacques de Laval <Jacques.De.Laval@westermo.com>
This commit is contained in:
Jacques de Laval committed 2021-04-01 16:18:54 +02:00
1 parent 665d212bd6
commit 10f4c7fa18
4 files changed
+34 -11

No files matched your search

+1
View File
@@ -498,6 +498,7 @@ void svc_mark_dirty(svc_t *svc)
void svc_mark_clean(svc_t *svc)
{
*((int *)&svc->dirty) = 0;
*((int *)&svc->args_dirty) = 0;
}
void svc_enable(svc_t *svc)