Should the dbmail-smptd service be added in here as well?

Anybody see any problems? It seems to work great on my 10.2.8 system.

Thanks
Brian

########################################

#!/bin/sh

##
# Dbmail POP3 and IMAP Servers
##

. /etc/rc.common

StartService ()
{
    ConsoleMessage "Starting Dbmail server"
    dbmail-pop3d &
    dbmail-imapd &
}

StopService ()
{
    ConsoleMessage "Stopping Dbmail servers"

    for theServer in dbmail-pop3d dbmail-imapd; do
        dbmailpid=`ps -axo pid,ucomm,user | grep $theServer | grep root`;
        dbmailpid=`echo $dbmailpid | cut -d\  -f1`;
        if [ "$dbmailpid" != "" ]; then
            kill $dbmailpid;
        fi
    done


}

RestartService ()
{
    StopService
    StartService
}

RunService "$1"

Reply via email to