[Zope] start zserver with cronjob

AM list_subscriber@neurobs.com
Tue, 04 Feb 2003 07:52:23 -0800


based onwhat distro you are running you could make it start up at boot 
time. My startup script on RH 8.0 ( in /etc/rc.d/init.d & set up using 
chkconfig )  is like this:

------ code -----

#! /bin/bash
#
# chkconfig: 2345 98 98
# description: Zope Web Server
#
# processname: zope

# Source function library
. /etc/rc.d/init.d/functions

case "$1" in
  start)
    echo -n "Starting Zope: "
    su - zope /var/local/zope/start > /dev/null 2> 
/var/log/zope/startup.log &
    echo_success
    echo
    ;;
  stop)
    echo -n "Stopping Zope: "
    /var/local/zope/stop
    echo_success
    echo
    ;;
  restart|reload)
    $0 stop
    $0 start
    ;;
  status)
    if [ -f /var/local/zope/var/Z2.pid ]; then
      echo -n "Zope (pid `head -1 /var/local/zope/var/Z2.pid`) is 
running..."
    fi
    echo
    ;;
  *)
    echo -n "Usage: service zope {start|stop|reload|restart|status}"
    echo
    exit 1
esac

exit 0

------ code -------

Then use chkconfig -add <script name>

hth
AM

Jos van der Vleuten wrote:

> Hello all,
>
> I have installed zope on my webspace at a hosting provider.
> With ssh i can start the zserver with the ./start command, but when i 
> close the ssh-session the
> zserver stops executing.
> Now i want to make a cronjob to automate this task of running the 
> zserver.
> I'm not very familiar with linux, so can somebody explain me how to do 
> this.
>
> Jos van der Vleuten
> Programmeur / Analist
> http://www.walcheren-online.net
>
> UCC Business Solutions
>
> Buizerdlaan 2
> Postbus 1534
> Nieuwegein
> Telefoon +31 (0)30 6008600
> Fax +31 (0)30 6008601
> http://www.ucc.nl
>
> Have a nice day !
>

-- 
==================================================================
 Aseem Mohanty							   
 Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 
 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231		  	
==================================================================								  	
 "I saw `cout' being shifted "Hello world" times to the left and  
  stopped right there!!"                        -- Steve Gonedes  
==================================================================