Browse Source

ham/svxlink: Added logrotate script.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
pull/47/head
Gustavo Conrad 8 years ago
committed by Willy Sudiarto Raharjo
parent
commit
3fb4edd186
  1. 12
      ham/svxlink/svxlink
  2. 3
      ham/svxlink/svxlink.SlackBuild

12
ham/svxlink/svxlink

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

3
ham/svxlink/svxlink.SlackBuild

@ -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

Loading…
Cancel
Save