icinga2 icon indicating copy to clipboard operation
icinga2 copied to clipboard

icinga2 daemon reload

Open LasBushus opened this issue 3 years ago • 2 comments

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, as icinga2 daemon -C and icinga2 daemon -R is much quicker and more intuitive, then icinga2 daemon -C and systemctl reload icinga2

LasBushus avatar Dec 15 '21 22:12 LasBushus

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).

julianbrost avatar Dec 16 '21 08:12 julianbrost

fwiw, systemd would already be handling the "pidfile magic" (on those systems, at least). e.g. nginx.service: ExecReload=/bin/kill -s HUP $MAINPID

leeclemens avatar Dec 31 '21 01:12 leeclemens