clamav PID introduced again
[monit-cn.git] / update-monit.d
index 20508c7..d7abcbf 100755 (executable)
@@ -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
 
 
@@ -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