Upstart script for Poolmon

Listas@Adminlinux listas at adminlinux.com.br
Tue Feb 3 20:30:40 UTC 2015


If any of you need, this worked for me:

root at director-server:~# cat /etc/init/poolmon.conf
# Starts the poolmon daemon
#
# Description:
# Poolmon is a director mailserver pool monitoring script for Dovecot, meant
# toroughly duplicate the functionality of node health monitors on dedicated
# loadbalancers like LVS or F5 BigIP LTM. This script can be safely run 
on more
# than one director host simultaneously, although differences in node
# reachability may result in mailserver vhost count flapping.
#
# processname: poolmon
# pidfile: /var/run/poolmon.pid
# logfile: /var/log/poolmon.log

start on runlevel [2345]
stop on runlevel [!2345]
respawn
expect fork

env CMD='/usr/local/sbin/poolmon'
env DIRECTOR_SOCKET='/var/run/dovecot_director/director-admin'
env DEBUG='--debug'
env INTERVAL=5

pre-start script
     test -x /usr/local/sbin/poolmon || { stop ; exit 0; }
end script

script
         exec $CMD --socket=$DIRECTOR_SOCKET $DEBUG --interval=$INTERVAL
end script


Thanks!
--
Thiago Henrique

Em 30-01-2015 13:58, Listas at Adminlinux escreveu:
> Hi
>
> My servers are Ubuntu 14.04 and I'm needing to make a Upstart script for
> Poolmon.
>
> Does someone already made this and could to share with us ?
>
> Thanks!
> --
> Thiago henrique


More information about the dovecot mailing list