X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=update-monit.d;h=5711255cc3921db3d8d6fb1cfb0f5a5b42746260;hb=5f60b25a07dea5c8672a7abbcbb8dc0e1e521f19;hp=dee92dc6b2fe139f962b7b6ffa571d230b453a7a;hpb=73983673253277faed06aa536fd3c145faece6fa;p=monit-cn.git diff --git a/update-monit.d b/update-monit.d index dee92dc..5711255 100755 --- a/update-monit.d +++ b/update-monit.d @@ -7,7 +7,7 @@ # Free Software Foundation; either version 2 of the License, or (at your # option) any later version. -MONIT_DIR=/etc/monit.d +MONIT_DIR=/etc/monit/conf.d TEMPLATES_DIR=/usr/share/monit-cn @@ -105,7 +105,7 @@ check_template() { return 0 fi - if ! grep -q "^#.*monit-cn template file" "$filename"; then + if ! grep -q "^#.*monit-cn template" "$filename"; then RET=0 return 0 fi @@ -172,7 +172,7 @@ done if [ $changed -eq 1 ]; then echo "CN: Stopping/restarting monit service" - pkill -9 -f /usr/sbin/monit || true + pkill -9 -f /usr/bin/monit || true else echo "CN: No new services detected, sorry" fi