summaryrefslogtreecommitdiffstats
path: root/unit.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'unit.logrotate')
-rw-r--r--unit.logrotate4
1 files changed, 3 insertions, 1 deletions
diff --git a/unit.logrotate b/unit.logrotate
index a8340a9..8fb0019 100644
--- a/unit.logrotate
+++ b/unit.logrotate
@@ -3,6 +3,8 @@
nocreate
notifempty
postrotate
- /bin/kill -SIGUSR1 `cat /var/run/unit/unit.pid`
+ if [ -f /var/run/unit/unit.pid ]; then
+ /bin/kill -SIGUSR1 `cat /var/run/unit/unit.pid`
+ fi
endscript
}