mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
9f45c4305d
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
17 lines
444 B
Text
17 lines
444 B
Text
/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
|
|
}
|