summaryrefslogtreecommitdiffstats
path: root/network/unbound/unbound.logrotate
diff options
context:
space:
mode:
author Badchay <badchay@protonmail.com>2022-09-04 19:10:21 +0100
committer Dave Woodfall <dave@slackbuilds.org>2022-09-04 19:10:21 +0100
commite0749d740cb7c585d95d41bf7b4bc9f2795155ec (patch)
treed5a2699c8ce903006bb6cdfda4fb55e8e4fdc55c /network/unbound/unbound.logrotate
parente6c36a19c71186d4e0b9e7aad6c95bed6b913bae (diff)
downloadslackbuilds-e0749d740cb7c585d95d41bf7b4bc9f2795155ec.tar.gz
slackbuilds-e0749d740cb7c585d95d41bf7b4bc9f2795155ec.tar.xz
network/unbound: Updated for version 1.16.2.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Diffstat (limited to 'network/unbound/unbound.logrotate')
-rw-r--r--network/unbound/unbound.logrotate11
1 files changed, 11 insertions, 0 deletions
diff --git a/network/unbound/unbound.logrotate b/network/unbound/unbound.logrotate
new file mode 100644
index 0000000000..a00c8f0951
--- /dev/null
+++ b/network/unbound/unbound.logrotate
@@ -0,0 +1,11 @@
+/var/log/unbound/unbound.log {
+ su unbound unbound
+ notifempty
+ missingok
+ rotate 7
+ postrotate
+ # Try using unbound-control to start a new log
+ # On fail, fall back to using a HUP signal
+ /usr/sbin/unbound-control log_reopen || bash /etc/rc.d/rc.unbound reload
+ endscript
+}