ham/svxlink: Added logrotate script.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
ff73ccf5a9
commit
3fb4edd186
|
@ -0,0 +1,12 @@
|
|||
/var/log/svxlink
|
||||
/var/log/svxreflector
|
||||
{
|
||||
missingok
|
||||
notifempty
|
||||
weekly
|
||||
rotate 12
|
||||
create 0644 svxlink daemon
|
||||
postrotate
|
||||
killall -HUP svxlink
|
||||
endscript
|
||||
}
|
|
@ -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…
Reference in New Issue