summaryrefslogtreecommitdiffstats
path: root/unit.logrotate
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2019-01-17 18:05:48 +0100
committerRemi Collet <remi@remirepo.net>2019-01-17 18:05:48 +0100
commit77b08748cd056c9e6950d7a27016164c8a5671d5 (patch)
tree950e3cff1cb1dd66c567e1e9065753c41fe2b168 /unit.logrotate
parent419668b9d72a6e7a680a6f650aa2c65b197a2b3d (diff)
provide logrotate configuration
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
+}