Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

icinga2 daemon reload #9136

Open
LasBushus opened this issue Dec 15, 2021 · 2 comments
Open

icinga2 daemon reload #9136

LasBushus opened this issue Dec 15, 2021 · 2 comments
Labels
area/cli Command line helpers enhancement New feature or request

Comments

@LasBushus
Copy link

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

@julianbrost julianbrost added the enhancement New feature or request label Dec 16, 2021
@julianbrost
Copy link
Contributor

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

@leeclemens
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli Command line helpers enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants