tpop3d-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tpop3d-discuss]running second instance


From: Jason Gaffney
Subject: [tpop3d-discuss]running second instance
Date: Thu, 31 May 2007 16:02:17 -0500

Hello all,

I hope someone can help me out.  I am trying to get two instances of tpop3d running on the same box. The first one is running just fine.  I can run the second instance manually just fine so I'm assuming my config files are OK.  When I run it via /etc/init.d/ it tells me it's already running.

Here is my second instance of the init.d script, the first is untouched from the defaults.
Thanx for any help.

# $Header: /var/cvsroot/gentoo-x86/net-mail/tpop3d/files/tpop3d-init,v 1.3 2004/07/14 23:52:18 agriffis Exp $

depend() {
        need net
}

checkconfig() {
        if [ ! -e /etc/tpop3d/vmail.tpop3d.conf ] ; then
                eerror "You need an /etc/tpop3d/vmail.tpop3d.conf file to run tpop3d"
                return 1
        fi
}

start() {
        checkconfig || return 1
        ebegin "Starting vmail.tpop3d"
        start-stop-daemon --start \
                --exec /usr/sbin/tpop3d -- -p /var/run/vmail.tpop3d -f /etc/tpop3d/vmail.tpop3d.conf
        eend $?
}

stop() {
        ebegin "Stopping tpop3d"
        start-stop-daemon --stop --exec /usr/sbin/tpop3d
        eend $?
}


Jason Gaffney
MCNE, ASE-Netware, AIS-Procurve
MCP, Project+, A+
Heartland Business Systems



reply via email to

[Prev in Thread] Current Thread [Next in Thread]