Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

[postrotate] postrotate script to send USR2 to sensu-prog to reopen #9

Merged
merged 1 commit into from

2 participants

@portertech
Owner

No description provided.

@portertech
Owner

This works because of https://github.com/sensu/sensu/blob/master/lib/sensu/logger.rb#L33

@joemiller @chrisroberts I'm looking for a +1 before I merge this sucker in.

@joemiller
Owner

looks good to me

@joemiller joemiller merged commit 7fa48d0 into sensu:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 13 additions and 1 deletion.
  1. +13 −1 sensu_configs/logrotate.d/sensu
View
14 sensu_configs/logrotate.d/sensu
@@ -6,6 +6,9 @@
sharedscripts
copytruncate
compress
+ postrotate
+ kill -USR2 `cat /var/run/sensu/sensu-client.pid`
+ endscript
}
/var/log/sensu/sensu-server.log {
@@ -16,6 +19,9 @@
sharedscripts
copytruncate
compress
+ postrotate
+ kill -USR2 `cat /var/run/sensu/sensu-server.pid`
+ endscript
}
/var/log/sensu/sensu-api.log {
@@ -26,6 +32,9 @@
sharedscripts
copytruncate
compress
+ postrotate
+ kill -USR2 `cat /var/run/sensu/sensu-api.pid`
+ endscript
}
/var/log/sensu/sensu-dashboard.log {
@@ -36,4 +45,7 @@
sharedscripts
copytruncate
compress
-}
+ postrotate
+ kill -USR2 `cat /var/run/sensu/sensu-dashboard.pid`
+ endscript
+}
Something went wrong with that request. Please try again.