Autostarting Zope
March 13th, 2005
When you first install Plone/Zope on Linux, you stop and start the Zope server by going to the zope/bin directory and running the zopectl script:
./zopectl start
or
./zopectl stop
This is all right to begin with, but what you really want is for Zope to start up automatically when the machine boots up. One way to do this is to edit the /etc/rc.local file and add a line such as:
su <zopeuser> -c "<path>/zope/bin/zopectl start"
For example:
su joe -c "/usr/local/zope/bin/zopectl start"
The su command switches to the specified user (in the above example joe). This is the user that zope is configured to run as. Typically, you will run the Zope server as a non-root user.
su <user> -c <command> means run the following single command as the specified user.
Potentially similar posts
- Scan for available IP addresses – August 2011
- Adding your choice of text editor to Flare’s Open With menu – December 2010
- Perl basics for beginners (on Windows) – August 2010
- Gotchas with running a Perl script as a cron job – August 2010
- Preventing BBC iPlayer running all the time – November 2008