diff options
Diffstat (limited to 'net-p2p/syncthing/files/syncthing.logrotate')
-rw-r--r-- | net-p2p/syncthing/files/syncthing.logrotate | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/net-p2p/syncthing/files/syncthing.logrotate b/net-p2p/syncthing/files/syncthing.logrotate new file mode 100644 index 000000000000..37c43209a120 --- /dev/null +++ b/net-p2p/syncthing/files/syncthing.logrotate @@ -0,0 +1,9 @@ +/var/log/syncthing/syncthing.log { + missingok + notifempty + sharedscripts + postrotate + kill -0 $(</run/syncthing.pid) && \ + /etc/init.d/syncthing restart > /dev/null 2>&1 || true + endscript +} |