diff options
Diffstat (limited to 'source/n/ulogd')
-rwxr-xr-x | source/n/ulogd/ulogd.SlackBuild | 4 | ||||
-rw-r--r-- | source/n/ulogd/ulogd.logrotate | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/source/n/ulogd/ulogd.SlackBuild b/source/n/ulogd/ulogd.SlackBuild index 1ffd0822..c1709aaf 100755 --- a/source/n/ulogd/ulogd.SlackBuild +++ b/source/n/ulogd/ulogd.SlackBuild @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=ulogd VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} NUMJOBS=${NUMJOBS:-" -j7 "} @@ -103,7 +103,7 @@ cat $CWD/rc.ulogd > $PKG/etc/rc.d/rc.ulogd.new chmod 0755 $PKG/etc/rc.d/rc.ulogd.new mkdir -p $PKG/etc/logrotate.d -cat ulogd.logrotate > $PKG/etc/logrotate.d/ulogd.new +cat $CWD/ulogd.logrotate > $PKG/etc/logrotate.d/ulogd.new find $PKG/usr/man -exec gzip -9 {} \; diff --git a/source/n/ulogd/ulogd.logrotate b/source/n/ulogd/ulogd.logrotate new file mode 100644 index 00000000..b3fb6d12 --- /dev/null +++ b/source/n/ulogd/ulogd.logrotate @@ -0,0 +1,7 @@ +/var/log/ulogd.log /var/log/ulogd.syslogemu /var/log/ulogd.pktlog /var/log/ulogd.pcap { + missingok + sharedscripts + postrotate + /bin/killall -HUP ulogd 2> /dev/null || true + endscript +} |