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
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