mirror of
https://github.com/troglobit/finit.git
synced 2026-10-28 12:30:44 +00:00
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:
1 parent
665d212bd6
commit
10f4c7fa18
4 files changed
+34
-11
No files matched your search
@@ -232,8 +232,11 @@ For more information, see [doc/plugins.md](doc/plugins.md).
|
||||
By default, Finit monitors `/etc/finit.d/` and `/etc/finit.d/enabled/`
|
||||
registering any changes to `.conf` files. To activate a change the user
|
||||
must call `initctl reload`, which reloads all modified files, stops any
|
||||
removed services, starts new ones, and restarts any modified ones, with
|
||||
SIGHUP if the process supports it.
|
||||
removed services, starts new ones, and restarts any modified ones. If the
|
||||
command line arguments of a service have changed, the process will be
|
||||
terminated and then started again with the updated arguments. If the arguments
|
||||
have not been modified and the process supports SIGHUP, the process will
|
||||
receive a SIGHUP rather than being terminated and started.
|
||||
|
||||
For some use-cases the extra step of calling `initctl reload` creates an
|
||||
unnecessary overhead, which can be removed at build-time using:
|
||||
|
||||
Reference in new issue
Block a user