summaryrefslogtreecommitdiffhomepage
path: root/pkg/deb/debian/unit.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/deb/debian/unit.logrotate')
-rw-r--r--pkg/deb/debian/unit.logrotate15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkg/deb/debian/unit.logrotate b/pkg/deb/debian/unit.logrotate
new file mode 100644
index 00000000..416947ca
--- /dev/null
+++ b/pkg/deb/debian/unit.logrotate
@@ -0,0 +1,15 @@
+/var/log/unit.log {
+ daily
+ missingok
+ rotate 7
+ compress
+ delaycompress
+ nocreate
+ notifempty
+ su root root
+ postrotate
+ if [ -f /var/run/unit.pid ]; then
+ /bin/kill -SIGUSR1 `cat /var/run/unit.pid`
+ fi
+ endscript
+}