diff options
author | Gustavo Conrad <gus3963@gmail.com> | 2018-04-06 00:29:08 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-04-07 08:13:12 +0700 |
commit | 3fb4edd186422c7764f2831957c3fcc225658acc (patch) | |
tree | 13b7b70440fb4ee1e7944890118c67e594173d2f /ham | |
parent | ff73ccf5a98405f0cb3fc1ba29ce761dcd446480 (diff) |
ham/svxlink: Added logrotate script.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'ham')
-rw-r--r-- | ham/svxlink/svxlink | 12 | ||||
-rw-r--r-- | ham/svxlink/svxlink.SlackBuild | 3 |
2 files changed, 15 insertions, 0 deletions
diff --git a/ham/svxlink/svxlink b/ham/svxlink/svxlink new file mode 100644 index 0000000000000..606dccced696f --- /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 407b9ad629737..8d043635c18b4 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 |