ham/svxlink: Added logrotate script.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
Gustavo Conrad 2018-04-06 00:29:08 +01:00 committed by Willy Sudiarto Raharjo
parent ff73ccf5a9
commit 3fb4edd186
2 changed files with 15 additions and 0 deletions

12
ham/svxlink/svxlink Normal file
View File

@ -0,0 +1,12 @@
/var/log/svxlink
/var/log/svxreflector
{
missingok
notifempty
weekly
rotate 12
create 0644 svxlink daemon
postrotate
killall -HUP svxlink
endscript
}

View File

@ -140,6 +140,9 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh
mkdir -p $PKG/etc/rc.d
cat $CWD/rc.svxlink > $PKG/etc/rc.d/rc.svxlink.new
mkdir -p $PKG/etc/logrotate.d
cat $CWD/svxlink > $PKG/etc/logrotate.d/svxlink
# Rename .conf to .new to be processed by doinst.sh
rename .conf .conf.new $PKG/etc/svxlink/*
rename .conf .conf.new $PKG/etc/svxlink/svxlink.d/*.conf