[Zope] PLEASE HELP: automatic start when system boots
Emmanuel SARACCO
esaracco@noos.fr
Wed, 22 Aug 2001 11:18:41 +0200
to make a symbolic link on startzope, juste do a "ln -s
/etc/rc.d/init.d/startzope /etc/rc.d/rc2.d/K90zope", for example.
Marc Fischer wrote:
>>make symlinks in /etc/rc.d/rc2.d (ou rc3.d, depends on your runlevel
>>(enter "/sbin/runlevel" to know it)), rc0.d and rc6.d.
>>
>
> Hey, that sounds good, ... but what are symlinks ???
> Could you point me exactly to the needed commands, which I have to use?
>
> Thanx a lot ... :-)
>
> Marc
>
> -------------------------
>
>
>>the system will call your /etc/rc.d/init.d/startzope with argument
>>"start" or "stop", depend on the asking runlevel (6=reboot, 0=stop etc.)
>>
>>for starting zope manually, juste do a "/etc/rc.d/init.d/startzope start"
>>
>>hope this help
>>
>>Marc Fischer wrote:
>>
>>>Hi,
>>>
>>>I have one really great problem. I just installed zope 240 on Linux Red
>>>
>>Hat
>>
>>>7. So far, so good. I don't have much experience with linux, and so I
>>>
>>have
>>
>>>exactlx to know, what to do for an automatic start of zope when the
>>>
>>system
>>
>>>boots!
>>>
>>>I used the following script:
>>>(from:
>>>
>>>
>>http://www.zope.org/Members/mcdonc/HowTos/zopeinstall/ZOPE-INSTALL-HOWTO)
>>
>>>#! /bin/sh
>>>#
>>># processname: zope2
>>>
>>># Source function library.
>>>. /etc/rc.d/init.d/functions
>>>
>>># Get config.
>>>. /etc/sysconfig/network
>>>
>>># Check that networking is up.
>>>if [ ${NETWORKING} = "no" ]
>>>then
>>> exit 0
>>>fi
>>>
>>># See how we were called.
>>>case "$1" in
>>> start)
>>> echo -n "Starting Zope2 service: "
>>> daemon /usr/local/zope/2-1-2/start
>>> ;;
>>> stop)
>>> echo -n "Stopping Zope2 service: "
>>> /usr/local/zope/2-1-2/stop
>>> ;;
>>> restart|reload)
>>> $0 stop
>>> $0 start
>>> ;;
>>> *)
>>> echo "Usage: zope {start|stop|restart}"
>>> exit 1
>>>esac
>>>
>>>exit 0
>>>
>>>... AND NOW THE BIG QUESTION ...
>>>
>>>What to do with it ?????
>>>Hopefully anyone could tell me how EXACTLY to use it with red hat 7 for
>>>
>>an
>>
>>>automated startup!
>>>I know, that there are a lot of intros around in the net, but for me, as
>>>
>>a
>>
>>>linux newbie, they are very confusing!
>>>
>>>Btw: I just tried to copy this script to /etc/rc.d/init.d and then used
>>>"chmod +x startzope" ... but without success!!!
>>>
>>>Thanks for your help ...
>>>
>>>Marc
>>>
>>>
>>>
>>>
>>
>>
>>
>>_______________________________________________
>>Zope maillist - Zope@zope.org
>>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 )
>>
>>
>