Open LasBushus opened 2 years ago
Sounds like something that would benefit from #7349 rather than doing some more pidfile magic (alternative would be doing kill -HUP $(cat /run/icinga2/icinga2.pid)
within that proposed command).
fwiw, systemd would already be handling the "pidfile magic" (on those systems, at least). e.g. nginx.service:
ExecReload=/bin/kill -s HUP $MAINPID
To check the configuration
icinga2 daemon -C
is used, but to reload you need to use either the systemd or init.d command. Is it possible to create a different parameter, like -R to reload the daemon. This would simply be to unify/simplify the typing, asicinga2 daemon -C
andicinga2 daemon -R
is much quicker and more intuitive, thenicinga2 daemon -C
andsystemctl reload icinga2