summaryrefslogtreecommitdiff
path: root/ham/svxlink
diff options
context:
space:
mode:
authorGustavo Conrad <gus3963@gmail.com>2018-04-06 00:29:08 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-04-07 08:13:12 +0700
commit3fb4edd186422c7764f2831957c3fcc225658acc (patch)
tree13b7b70440fb4ee1e7944890118c67e594173d2f /ham/svxlink
parentff73ccf5a98405f0cb3fc1ba29ce761dcd446480 (diff)
downloadslackbuilds-3fb4edd186422c7764f2831957c3fcc225658acc.tar.gz
ham/svxlink: Added logrotate script.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'ham/svxlink')
-rw-r--r--ham/svxlink/svxlink12
-rw-r--r--ham/svxlink/svxlink.SlackBuild3
2 files changed, 15 insertions, 0 deletions
diff --git a/ham/svxlink/svxlink b/ham/svxlink/svxlink
new file mode 100644
index 0000000000..606dccced6
--- /dev/null
+++ b/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
+}
diff --git a/ham/svxlink/svxlink.SlackBuild b/ham/svxlink/svxlink.SlackBuild
index 407b9ad629..8d043635c1 100644
--- a/ham/svxlink/svxlink.SlackBuild
+++ b/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