Henrique de Moraes Holschuh wrote:
> 
> This patch should be applied on top of the previous one in this thread (in
> message <20011128123038.K13192@khazad-dum>).
> 
> It adds configure support for --enable-pidfile (which enables pidfile and
> daemon mode). The full filename (with path info) for the pidfile can be sent
> as the optional argument for --enable-pidfile.
> 
> The default is the old behaviour (no pidfile). The default pidfile is
> /var/run/cyrus-master.pid (unlikely to cause colisions).

just a quicky I currently use a shell script like this :-

#!/bin/sh

case "$1" in

start)
    if [ -x /usr/cyrus/bin/master ]
    then
        /usr/cyrus/bin/master &
        echo $! > /var/run/cyrus.pid
        echo -n " Cyrus Master"
    fi
    ;;

stop)
    if [ -e /var/run/cyrus.pid ]
    then
        kill `cat /var/run/cyrus.pid`
        rm /var/run/cyrus.pid
    fi
    ;;

*)
    echo "usage: $0 {start|stop}" 1>&2
    exit 64

;;
esac


which sort gives the same control.

-- 
Simon loader
yes I do need a job.

Reply via email to