Quieted logrotate script so that the cronjob no longer triggers system level emails
@@ -8,7 +8,7 @@ notifempty
rotate 5
size 10M
postrotate
- st2ctl reopen-log-files st2rulesengine
+ st2ctl reopen-log-files st2rulesengine > /dev/null
endscript
}
@@ -16,7 +16,7 @@ notifempty
size 100M
rotate 5
postrotate
- st2ctl reopen-log-files st2rulesengine
+ st2ctl reopen-log-files st2rulesengine > /dev/null
endscript
}
@@ -25,7 +25,7 @@ notifempty
daily
rotate 5
postrotate
- st2ctl reopen-log-files st2auth
+ st2ctl reopen-log-files st2auth > /dev/null
endscript
}
@@ -33,7 +33,7 @@ notifempty
daily
rotate 5
postrotate
- st2ctl reopen-log-files st2auth
+ st2ctl reopen-log-files st2auth > /dev/null
endscript
}
@@ -42,7 +42,7 @@ notifempty
daily
rotate 5
postrotate
- st2ctl reopen-log-files st2api
+ st2ctl reopen-log-files st2api > /dev/null
endscript
}
@@ -50,7 +50,7 @@ notifempty
daily
rotate 5
postrotate
- st2ctl reopen-log-files st2api
+ st2ctl reopen-log-files st2api > /dev/null
endscript
}
@@ -59,7 +59,7 @@ notifempty
daily
rotate 5
postrotate
- st2ctl reopen-log-files st2stream
+ st2ctl reopen-log-files st2stream > /dev/null
endscript
}
@@ -67,7 +67,7 @@ notifempty
daily
rotate 5
postrotate
- st2ctl reopen-log-files st2stream
+ st2ctl reopen-log-files st2stream > /dev/null
endscript
}
@@ -76,7 +76,7 @@ notifempty
daily
rotate 5
postrotate
- st2ctl reopen-log-files st2resultstracker
+ st2ctl reopen-log-files st2resultstracker > /dev/null
endscript
}
@@ -85,7 +85,7 @@ notifempty
daily
rotate 5
postrotate
- st2ctl reopen-log-files st2notifier
+ st2ctl reopen-log-files st2notifier > /dev/null
endscript
}
@@ -94,7 +94,7 @@ notifempty
daily
rotate 5
postrotate
- st2ctl reopen-log-files st2sensorcontainer
+ st2ctl reopen-log-files st2sensorcontainer > /dev/null
endscript
}
@@ -106,7 +106,7 @@ notifempty
# Delete all files that haven't been modified in over 30 days
# Clean up stale PID logs
find /var/log/st2/ -type f -name "st2actionrunner*.log" -mtime +30 -exec rm -f {} \;
- st2ctl reopen-log-files st2actionrunner
+ st2ctl reopen-log-files st2actionrunner > /dev/null
endscript
}
@@ -115,7 +115,7 @@ notifempty
daily
rotate 5
postrotate
- st2ctl reopen-log-files st2garbagecollector
+ st2ctl reopen-log-files st2garbagecollector > /dev/null
endscript
}
@@ -123,7 +123,8 @@ notifempty
/var/log/st2/st2web.log {
daily
rotate 5
+ missingok
postrotate
- st2ctl restart-component st2web
+ st2ctl restart-component st2web > /dev/null
endscript
}
