X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=update-monit.d;h=d7abcbf520c70e7956519506c031399a5dcd607d;hb=1d379d188cf746461c5e8eedf3542cfb801a865e;hp=dee92dc6b2fe139f962b7b6ffa571d230b453a7a;hpb=73983673253277faed06aa536fd3c145faece6fa;p=monit-cn.git diff --git a/update-monit.d b/update-monit.d index dee92dc..d7abcbf 100755 --- a/update-monit.d +++ b/update-monit.d @@ -1,13 +1,13 @@ #!/bin/sh # -# Copyright (C) 2007 Dinko Korunic, CARNet, Grupa za izradu paketa +# Copyright (C) 2007 Dinko Korunic, CARNET, Grupa za izradu paketa # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # 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,8 @@ 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 + service monit restart else echo "CN: No new services detected, sorry" fi