xref: /unit/pkg/deb/debian/unit.logrotate (revision 1205)
1*1205Sdefan@nginx.com/var/log/unit.log {
2*1205Sdefan@nginx.com    daily
3*1205Sdefan@nginx.com    missingok
4*1205Sdefan@nginx.com    rotate 7
5*1205Sdefan@nginx.com    compress
6*1205Sdefan@nginx.com    delaycompress
7*1205Sdefan@nginx.com    nocreate
8*1205Sdefan@nginx.com    notifempty
9*1205Sdefan@nginx.com    su root root
10*1205Sdefan@nginx.com    postrotate
11*1205Sdefan@nginx.com        if [ -f /var/run/unit.pid ]; then
12*1205Sdefan@nginx.com            /bin/kill -SIGUSR1 `cat /var/run/unit.pid`
13*1205Sdefan@nginx.com        fi
14*1205Sdefan@nginx.com    endscript
15*1205Sdefan@nginx.com}
16