From jgaffney at hbs.net Thu May 31 22:02:17 2007 From: jgaffney at hbs.net (Jason Gaffney) Date: Thu, 31 May 2007 16:02:17 -0500 Subject: [tpop3d-discuss]running second instance Message-ID: <1E8EF7BAE7957F4B907744BCBE0C3D9DB434D4@hbsexch.hbs.local> This is a multi-part message in MIME format. ------_=_NextPart_001_01C7A3C6.F8E56981 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 ------_=_NextPart_001_01C7A3C6.F8E56981 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable running second instance

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
            &= nbsp;   eerror "You need an /etc/tpop3d/vmail.tpop3d.conf = file to run tpop3d"
            &= nbsp;   return 1
        fi
}

start() {
        checkconfig || return 1
        ebegin "Starting = vmail.tpop3d"
        start-stop-daemon --start = \
            &= nbsp;   --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


------_=_NextPart_001_01C7A3C6.F8E56981-- From tpop3d at inode.at Thu May 31 23:25:34 2007 From: tpop3d at inode.at (Daniel Tiefnig) Date: Fri, 01 Jun 2007 00:25:34 +0200 Subject: [tpop3d-discuss]running second instance In-Reply-To: <1E8EF7BAE7957F4B907744BCBE0C3D9DB434D4@hbsexch.hbs.local> References: <1E8EF7BAE7957F4B907744BCBE0C3D9DB434D4@hbsexch.hbs.local> Message-ID: <465F4B5E.8030506@inode.at> Jason Gaffney wrote: > Here is my second instance of the init.d script, the first is > untouched from the defaults. As I don't know the default gentoo init script, I can just guess. > start-stop-daemon --start \ --exec /usr/sbin/tpop3d -- -p > /var/run/vmail.tpop3d -f /etc/tpop3d/vmail.tpop3d.conf Maybe you should change the pidfile here. Is it the same as in the default init script? start-stop-daemon will check if the pidfile exists, and refuse to start the daemon if so. hth, daniel