summaryrefslogtreecommitdiffstats
path: root/unit.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'unit.logrotate')
-rw-r--r--unit.logrotate8
1 files changed, 8 insertions, 0 deletions
diff --git a/unit.logrotate b/unit.logrotate
new file mode 100644
index 0000000..a8340a9
--- /dev/null
+++ b/unit.logrotate
@@ -0,0 +1,8 @@
+/var/log/unit/*.log {
+ missingok
+ nocreate
+ notifempty
+ postrotate
+ /bin/kill -SIGUSR1 `cat /var/run/unit/unit.pid`
+ endscript
+}