summaryrefslogtreecommitdiff
path: root/network/elemental-ircd/elemental-ircd.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'network/elemental-ircd/elemental-ircd.logrotate')
-rw-r--r--network/elemental-ircd/elemental-ircd.logrotate15
1 files changed, 15 insertions, 0 deletions
diff --git a/network/elemental-ircd/elemental-ircd.logrotate b/network/elemental-ircd/elemental-ircd.logrotate
new file mode 100644
index 0000000000..16c989becc
--- /dev/null
+++ b/network/elemental-ircd/elemental-ircd.logrotate
@@ -0,0 +1,15 @@
+/var/log/elemental-ircd/* {
+ daily
+ rotate 7
+ copytruncate
+ delaycompress
+ compress
+ notifempty
+ missingok
+ postrotate
+ if [ -x /etc/rc.d/rc.elemental-ircd ]
+ then
+ /etc/rc.d/rc.elemental-ircd reload > /dev/null 2>&1
+ fi
+ endscript
+}