+monit-cn (1:4.8.1-2) stable; urgency=low
+
+ * promijeni (root|monit)@localhost u (root|monit)@fqdn u monitrc
+ * popravljen typo u dovecot.conf/qpopper.conf
+
+ -- Dinko Korunic <kreator@carnet.hr> Thu, 25 Oct 2007 20:47:13 +0200
+
monit-cn (1:4.8.1-1) stable; urgency=low
* dodan postgrey servis
chmod u=rw,go= /etc/monit/monitrc
fi
+# sed monitrc with proper hostname
+if grep -q '@localhost' /etc/monit/monitrc; then
+ CARNET_HOSTNAME=`hostname`
+ CARNET_DOMAINNAME=`hostname --domain`
+ cp_check_and_sed '@localhost' \
+ "s/@localhost/@$CARNET_HOSTNAME.$CARNET_DOMAINNAME/g" \
+ /etc/monit/monitrc || true
+fi
+
# (re)generate monit.d files
update-monit.d || true
stop program = "/etc/init.d/dovecot stop"
if failed host 127.0.0.1 port 143 protocol imap
then restart
- if failed host 127.0.0.1 port 110 protocol pop3
+ if failed host 127.0.0.1 port 110 protocol pop
then restart
group mail
start program = "/etc/init.d/qpopper start"
stop program = "/etc/init.d/qpopper stop"
- if failed host 127.0.0.1 port 110 type pop3
+ if failed host 127.0.0.1 port 110 protocol pop
then restart