Re: [Zope] Starting Zope
Hello I'm the man who generate this jungly mailing Simply, I use thesescripts: ---/usr/local/scripts/zstart- #!/bin/bash $ZOPE_BASE/start -u $ZOPE_USER -w 80 1>/dev/null 2>&1 & --- the previous is invoked by the next one: ---/etc/rc.d/init.d/zope--- #!/bin/bash # zope # # chkconfig: 345 90 10 # description: Starts and stops the Zope instances # processname: z2.py # ZOPE ENVIRONMENT export ZOPE_BASE=/Zope-2.2.0 export ZOPE_USER=zope # Source function library. .. /etc/rc.d/init.d/functions # Get config. .. /etc/sysconfig/network # Check that networking is up. [ ${NETWORKING} = "no" ] && exit 1 [ -x /usr/local/scripts/zstart ] || exit 1 [ -x /usr/local/scripts/zstop ] || exit 1 # See how we were called. case "$1" in start) echo -n "Starting Zope instances: " if /usr/local/scripts/zstart; then success zope startup else failure zope startup fi echo ;; stop) echo -n "Stopping Zope instances: " if /usr/local/scripts/zstop /etc/zope.conf; then success zope shutdown else failure zope shutdown fi echo ;; status) status /Zope-2.2.0/bin/python exit $? ;; restart) $0 stop sleep 2 $0 start ;; *) echo "Usage: $0 {start|stop|status|restart}" exit 1 esac exit 0 which invokes also this one to stop all. ---/usr/local/scripts/zstop--- #!/bin/bash kill `/bin/cat "$ZOPE_BASE/var/Z2.pid"` -- Many thanks to jec who's the author of the original suite of scripts that a mangled, stupidely, to realize which ones I shown to you here. Thanx to all. -- >< / * * / / < / __oOOo__/__/_oOOo (°> Giovanni Costagliola (jancos) //\ email: [EMAIL PROTECTED] V_/_voice: +39 (0)347 1174139 _ / / / / ( (__ \ \ / /#*** * ** \ \/ /*** * * \ /###*** * ** \ /##*** * * \___/#*** * ** ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Starting Zope
Il gio, 27 lug 2000, Oleg Broytmann ha scritto: > On Thu, 27 Jul 2000, Costagliola Giovanni wrote: > > How can I to start Zope whit a different user than root and cath the > > default HTTP port? > >Use different way - start Zope as root, catch port 80 and drop uid. > > > I receive an error becouse root hasn't granted the need privileges on > > /Zope/var/ directory. > >This is a different error, not a problem with port 80, ah? > I see Oleg, more exactly I would start ZServer with an user like 'zope', for example, but at the same time I want it links the port 80! I could use the root user simply but I'll lose my sleep :^) Can you give me some input? > Oleg.(All opinions are mine and not of my employer) > > Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] >Programmers don't die, they just GOSUB without RETURN. -- >< / * * / / < / __oOOo__/__/_oOOo (°> Giovanni Costagliola (jancos) //\ email: [EMAIL PROTECTED] V_/_voice: +39 (0)347 1174139 _ / / / / ( (__ \ \ / /#*** * ** \ \/ /*** * * \ /###*** * ** \ /##*** * * \___/#*** * ** ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Starting Zope
Hello All, How can I to start Zope whit a different user than root and cath the default HTTP port? If I try for example: su - -c './start -w 80 -u zope' I receive an error becouse root hasn't granted the need privileges on /Zope/var/ directory. Thanx -- >< / * * / / < / __oOOo__/__/_oOOo (°> Giovanni Costagliola (jancos) //\ email: [EMAIL PROTECTED] V_/_voice: +39 (0)347 1174139 _ / / / / ( (__ \ \ / /#*** * ** \ \/ /*** * * \ /###*** * ** \ /##*** * * \___/#*** * ** ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )