summaryrefslogtreecommitdiffstats
path: root/src/examples
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/logrotate11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/examples/logrotate b/src/examples/logrotate
new file mode 100644
index 00000000..9df721f2
--- /dev/null
+++ b/src/examples/logrotate
@@ -0,0 +1,11 @@
+/var/log/sssd/*.log {
+ weekly
+ missingok
+ notifempty
+ sharedscripts
+ rotate 2
+ compress
+ postrotate
+ /bin/kill -HUP `cat /var/run/sssd.pid 2>/dev/null` 2> /dev/null || true
+ endscript
+}