summaryrefslogtreecommitdiffstats
path: root/network/monkey/monkey.logrotate
blob: 77e606aa7588b9476681a0814283e505ebcbb465 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/var/log/monkey/*.log {
  su apache apache
  rotate 10
  notifempty
  compress
  delaycompress
  sharedscripts
  postrotate
#    kill -HUP `cat /var/run/monkey/monkey.pid.*`
# Handling of SIGHUP is not implemented yet, but they promise make it like apache httpd
     PATH=/usr/sbin:/sbin:/usr/bin:/bin
     pgrep -u apache -x monkey 1>/dev/null 2>/dev/null
     if [ $? != '0' ]; then
         /etc/rc.d/rc.monkey restart
     fi
  endscript
}