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 !
Hi Jos, How about ./start & The '&' tells the shell to execute the program in the background. This will allow you to exit your ssh session, and still have zope running. Cheers, Andy On Tue, 2003-02-04 at 06:38, 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 !
Almost correct. The problem is that he's probably still got Zope running in Development mode, the -D in the start script. The best way to solve this is to remove the -D from the start script, this daemonizes Zope. hth Phil On 04 Feb 2003 07:09:21 -0600, Andrew Altepeter <aaltepet@bethel.edu> wrote:
Hi Jos,
How about ./start &
The '&' tells the shell to execute the program in the background. This will allow you to exit your ssh session, and still have zope running.
Cheers, Andy
On Tue, 2003-02-04 at 06:38, 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 !
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
-- Phil Harris
On 2/4/03 8:09 AM, "Andrew Altepeter" <aaltepet@bethel.edu> wrote:
Hi Jos,
How about ./start &
The '&' tells the shell to execute the program in the background. This will allow you to exit your ssh session, and still have zope running.
Cheers, Andy
On Tue, 2003-02-04 at 06:38, 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 !
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
You could also edit the start file and take out the "-D" That's the switch that turns on debugging mode. With it off, the process will run on its own and not be bound to your shell.
You could also edit the start file and take out the "-D" That's the switch that turns on debugging mode. With it off, the process will run on its own and not be bound to your shell.
Yup. Learn something new every day :-) Andy
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
also sprach Andrew Altepeter <aaltepet@bethel.edu> [2003.02.04.1409 +0100]:
How about ./start &
The '&' tells the shell to execute the program in the background. This will allow you to exit your ssh session, and still have zope running.
Wrong. It starts in the background but the shell will SIGHUP it when it finishes, causing the zserver process to exit. What you want to do instead is: nohup ./start which will allow you to exit the shell. You can find all the relevant output from the ./start script in ./nohup.out (which you can sefely delete). -- martin; (greetings from the heart of the sun.) \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck NOTE: The pgp.net keyservers and their mirrors are broken! Get my key here: http://people.debian.org/~madduck/gpg/330c4a75.asc why are they called apartments when they are all stuck together?
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 ==================================================================
also sprach Jos van der Vleuten <Jos.van.der.Vleuten@transiciel.nl> [2003.02.04.1338 +0100]:
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.
Right. Why don't you start zserver as a daemon process from init.d? What Linux system do you have, and who is the administrator? -- martin; (greetings from the heart of the sun.) \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck NOTE: The pgp.net keyservers and their mirrors are broken! Get my key here: http://people.debian.org/~madduck/gpg/330c4a75.asc dazed and confused, but trying to continue.
participants (6)
-
AM -
Andrew Altepeter -
Chris Muldrow -
Jos van der Vleuten -
martin f krafft -
Phil Harris