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

[dev.icinga.com #8808] logrotate doesn't work on Ubuntu #2793

Closed
icinga-migration opened this issue Mar 19, 2015 · 6 comments
Closed

[dev.icinga.com #8808] logrotate doesn't work on Ubuntu #2793

icinga-migration opened this issue Mar 19, 2015 · 6 comments
Labels
area/setup Installation, systemd, sample files bug Something isn't working
Milestone

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/8808

Created by Trefex on 2015-03-19 09:22:18 +00:00

Assignee: jflach
Status: Resolved (closed on 2015-03-31 10:18:51 +00:00)
Target Version: 2.3.4
Last Update: 2015-04-20 07:34:35 +00:00 (in Redmine)

Icinga Version: 2.3.2-1
Backport?: Already backported
Include in Changelog: 1

On Ubuntu 12.04,

There is the following error coming from anacron

logrotate_script: 2: logrotate_script: killall: not found
error: error running non-shared postrotate script for /var/log/icinga2/icinga2.log of '/var/log/icinga2/icinga2.log /var/log/icinga2/debug.log '
logrotate_script: 2: logrotate_script: killall: not found
error: error running non-shared postrotate script for /var/log/icinga2/debug.log of '/var/log/icinga2/icinga2.log /var/log/icinga2/debug.log '

This can be fixed by installing the psmisc package as mentioned on the logrotate man page of Ubuntu here:

http://manpages.ubuntu.com/manpages/precise/man8/logrotate.8.html

Furthermore, it shoud be investigated if the command can not be replaced by killall5 which is the killall command from SystemV.

Thanks

Changesets

2015-03-31 10:18:20 +00:00 by jflach a283695

Fix logrotate configuration

refs #8868 fixes #8808

2015-04-20 06:54:17 +00:00 by jflach 66dd494

Fix logrotate configuration

refs #8868 fixes #8808

2015-04-20 08:09:18 +00:00 by (unknown) 56364ec

Fix logrotate install

refs #8808

2015-04-20 08:11:48 +00:00 by (unknown) 5baa837

Fix logrotate install

refs #8808

2015-04-20 09:22:14 +00:00 by (unknown) 51d86fa

logrotate: Check whether the PID file exists

refs #8808

2015-04-20 09:25:10 +00:00 by (unknown) 4214329

logrotate: Check whether the PID file exists

refs #8808

Relations:

@icinga-migration
Copy link
Author

Updated by gbeutner on 2015-03-26 07:33:14 +00:00

I'd prefer if we just used the PID file + kill(1). There's no reason why we should send SIGHUP to icinga2 instances other than the one that's being managed by the init script.

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-03-26 09:15:53 +00:00

  • Status changed from New to Assigned
  • Assigned to set to jflach
  • Target Version set to 2.4.0
  • Estimated Hours set to 2

@icinga-migration
Copy link
Author

Updated by jflach on 2015-03-31 10:18:51 +00:00

  • Status changed from Assigned to Resolved
  • Done % changed from 0 to 100

Applied in changeset a283695.

@icinga-migration
Copy link
Author

Updated by gbeutner on 2015-04-20 06:54:05 +00:00

  • Subject changed from Ubuntu package should include psmisc dependency to logrotate doesn't work on Ubuntu
  • Target Version changed from 2.4.0 to 2.3.4
  • Backport? changed from TBD to Yes

@icinga-migration
Copy link
Author

Updated by mfrosch on 2015-04-22 07:07:27 +00:00

  • Relates set to 9152

@icinga-migration
Copy link
Author

Updated by mfrosch on 2015-04-22 07:16:19 +00:00

  • Relates set to 8654

@icinga-migration icinga-migration added bug Something isn't working area/setup Installation, systemd, sample files labels Jan 17, 2017
@icinga-migration icinga-migration added this to the 2.3.4 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/setup Installation, systemd, sample files bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant