summaryrefslogtreecommitdiff
path: root/network/monkey/monkey.logrotate
diff options
context:
space:
mode:
authorSergey Fedosoff <eleksir@gmail.com>2014-07-28 19:01:26 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-08-03 16:32:42 +0700
commit9f45c4305dd612cfe7de85f30aab13edb7430b4b (patch)
treefd32490e2f948e4ac8394a37875b2a9ff97e5a73 /network/monkey/monkey.logrotate
parent158c085840177ab1474fdee29487d754d506973b (diff)
downloadslackbuilds-9f45c4305dd612cfe7de85f30aab13edb7430b4b.tar.gz
network/monkey: Updated for version 1.5.2.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'network/monkey/monkey.logrotate')
-rw-r--r--network/monkey/monkey.logrotate6
1 files changed, 5 insertions, 1 deletions
diff --git a/network/monkey/monkey.logrotate b/network/monkey/monkey.logrotate
index 5d1cde3540..77e606aa75 100644
--- a/network/monkey/monkey.logrotate
+++ b/network/monkey/monkey.logrotate
@@ -8,6 +8,10 @@
postrotate
# kill -HUP `cat /var/run/monkey/monkey.pid.*`
# Handling of SIGHUP is not implemented yet, but they promise make it like apache httpd
- /etc/rc.d/rc.monkey restart
+ 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
}