[Zope3-dev] problem with multiple instances of zope3 as daemon via init script on gentoo

Bernd Dorn zope-mailinglist at mopa.at
Wed Jan 11 07:01:00 EST 2006


hi all

i have two init scripts (see below) which start a zope3 instance
this works fine if i start one of them, but if i try to start the  
second, the following message appears

* Starting Zope in /home/zope1/timetables ...
WARNING! zdrun is managing a different program!
our program   = ['/home/zope1/timetables/bin/runzope']
daemon's args = ['/home/zope1/screens/bin/runzope']
daemon process already running; pid=10839

seems that the pid of the other instance is taken, does anybody know  
how to solve this
or is there another way to start zope3 as an unprivileged user?
as far as i know there is no effective-user directive in zope.conf as  
in zope2

my zope version is 3.2 final, but it seems not version specific
my python:
Python 2.4.2 (#1, Dec  6 2005, 15:16:51)
[GCC 3.3.5-20050130 (Gentoo 3.3.5.20050130-r1, ssp-3.3.5.20050130-1,  
pie-8.7.7. on linux2

my system:
Linux flow 2.6.14-gentoo-r2 #1 SMP Mon Dec 5 14:23:57 CET 2005 i686  
Intel(R) Xeon(TM) CPU 2.80GHz GenuineIntel GNU/Linux


thx, bernd

init script listing:

INSTANCE_HOME=/home/zope1/screens
ZOPE_USER=zope1

opts="start stop restart kill quit status help"

depend() {
         need net
}

start() {
         ebegin "Starting Zope in $INSTANCE_HOME"
	su - $ZOPE_USER -c "$INSTANCE_HOME/bin/zopectl start"
         eend $?
}

stop() {
         ebegin "Stopping Zope in $INSTANCE_HOME"
	su - $ZOPE_USER -c "$INSTANCE_HOME/bin/zopectl stop"
         eend $?
}

restart() {
         ebegin "Restarting Zope in $INSTANCE_HOME"
         svc_stop
	svc_start
         eend $?
}

kill() {
         ebegin "Killing Zope in $INSTANCE_HOME"
	su - $ZOPE_USER -c "$INSTANCE_HOME/bin/zopectl kill"
         eend $?
}

quit() {
         ebegin "Quitting Zope Daemon Manager $INSTANCE_HOME"
	su - $ZOPE_USER -c "$INSTANCE_HOME/bin/zopectl quit"
         eend $?
}

reload() {
          # throws an error, dunno why
         ebegin "Reloading Zope config in $INSTANCE_HOME"
	su - $ZOPE_USER -c "$INSTANCE_HOME/bin/zopectl reload"
         eend $?
}

status() {
         ebegin "Status of Zope in $INSTANCE_HOME"
	su - $ZOPE_USER -c "$INSTANCE_HOME/bin/zopectl status"
         eend $?
}

help() {
         ebegin "Help for Zope Daemon Manager in $INSTANCE_HOME"
	su - $ZOPE_USER -c "$INSTANCE_HOME/bin/zopectl help"
         eend $?
}




More information about the Zope3-dev mailing list