diff options
Diffstat (limited to '')
-rw-r--r-- | pkg/deb/debian/unit.init | 4 | ||||
-rw-r--r-- | pkg/deb/debian/unit.logrotate | 15 |
2 files changed, 16 insertions, 3 deletions
diff --git a/pkg/deb/debian/unit.init b/pkg/deb/debian/unit.init index 2f573f99..900e97fd 100644 --- a/pkg/deb/debian/unit.init +++ b/pkg/deb/debian/unit.init @@ -13,11 +13,9 @@ ### END INIT INFO PATH=/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/unitd -NAME=unitd +NAME=unit DESC=unitd -[ -r /etc/default/${NAME} ] && . /etc/default/${NAME} - #includes lsb functions . /lib/lsb/init-functions 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 +} |