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
[dev.icinga.com #10935] Logrotate on systemd distros should use systemctl not service #3818
Comments
Updated by jflach on 2016-01-07 08:50:51 +00:00
Using systemctl on systemd systems would be the right thing to do, but I too do not know how to do this elegantly. So please go ahead and create a patch (git formated with a real sounding name) for redirecting stderr. :) Kind regards, |
Updated by sysadmiral on 2016-01-07 10:41:17 +00:00 |
Updated by mfriedrich on 2016-01-11 13:06:43 +00:00
Please review and merge. Thanks. |
Updated by jflach on 2016-01-14 16:48:15 +00:00 The discussion about this issue is now happening over at github: |
Updated by dgoetz on 2016-01-15 08:00:31 +00:00 Just to mention we already discussed this in https://dev.icinga.org/issues/10730 |
Updated by mfriedrich on 2016-01-15 08:02:11 +00:00
|
Updated by leeclemens on 2016-01-20 00:22:45 +00:00 Bringing discussion back here per @dnsmmichi: I took a similar approach as syslog, sending USR1 signal and handling errors related to the pid file not being there (and not forcibly starting the service): |
Updated by leeclemens on 2016-01-21 09:17:21 +00:00
Applied in changeset 7bf012c. |
Updated by jflach on 2016-01-21 09:24:35 +00:00
leeclemens solution was a lot more attractive. Both pull requests are now closed |
Updated by mfriedrich on 2016-01-25 10:39:48 +00:00
|
Updated by gbeutner on 2016-02-23 09:58:38 +00:00
|
This issue has been migrated from Redmine: https://dev.icinga.com/issues/10935
Created by sysadmiral on 2016-01-06 11:37:50 +00:00
Assignee: jflach
Status: Resolved (closed on 2016-01-21 09:17:21 +00:00)
Target Version: 2.4.2
Last Update: 2016-02-23 09:58:38 +00:00 (in Redmine)
Hi,
On a distro that uses systemd (in my case RHEL 7) the service command has been replaced with systemctl.
The logrotate commands for icinga2 use "service icinga2 status" but this generates lots of anacron "spam" because it gets redirected to systemctl.
Either the logrotate needs updating (for systemd systems only) to use systemctl or we need to /dev/null stderr for the "service icinga2 status" command. I am happy to create a pull request for the latter but I am unfamiliar with cmake and would not feel confident in setting up the logic for the first option.
If you need more info let me know.
Many Thanks,
Amo
Changesets
2016-01-21 09:12:43 +00:00 by leeclemens 7bf012c
2016-02-23 08:27:30 +00:00 by leeclemens ea2aedb
Relations:
The text was updated successfully, but these errors were encountered: