• About
  • Bookmarks
Robert-Reinder Nederhoed Internet, Bitcoin en koken (weblog in ruste)

Running Zope3 as daemon service

August 3, 2005 23:58 / 1 Comment / Robert-Reinder Nederhoed

The first Zope3 site I built a few months ago is still running on our development server. Which was a decision. We did not want to experiment with this new technique on a server also serving customer sites.

To be honest. I also did not get to installing Zope3 in such a way that it would fire up my z3 application when the server is restarted. Until yesterday, everytime the server was rebooted—not too uncommon for a development server—I had to restart my Zope application manually.

How nice would it be to be able to just reboot without bothering about restarting my Zope application. And eventually I should get this site onto one of our production servers of course.

Anyway, my Linux skills do not go far beyond ‘user’ level. With the difference that I have ‘root’ access. A dangerous combination 🙂

After some searching (thanks fromdownunder) I succeeded.

Assuming you have

  • RedHat Linux Fedora Core3
  • a Zope3 instance installed that you can start manually

Here’s the How-To get Zope3 running as a Linux daemon service.

  1. Change to root with
    su
  2. Copy <your z3 instance path>/bin/zopectl to /etc/init.d/zope3ctl
  3. Edit /etc/init.d/zope3ctl to include (new: lines 2-3)
    #!/usr/bin/python
    # chkconfig: 345 30 70
    # description: Zope - My installation
  4. Then run from the command line
    /sbin/chkconfig --add zope3ctl
    and
    /sbin/service zope3ctl start

If all went well, you should read something about a process having been started.

You can check if your zope3ctl was added to the services list, run
/sbin/chkconfig --list zope3ctl

Comments are welcome.

Posted in: Linux, Zope

One Thought on “Running Zope3 as daemon service”

  1. Graham Klyne on November 10, 2005 at 16:19 said:

    I was very pleased to find these instructions, but they didn’t work for me.

    On running “service zope3ctl start” I get:

    Error: error opening file /etc/rc.d/etc/zdaemon.conf: [Errno 2] No such file or directory: ‘/etc/rc.d/etc/zdaemon.conf’

    Reply↓

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Post Navigation

← Previous Post
Next Post →

Recent Posts

  • LeWeb 2013: about Bitcoin
  • Rule of acquisition #303
  • Recreational betting with Bitcoins
  • Search activity on Google related to "bitcoin" and its value
  • Bitcoin Statistics to study

Recent Comments

  • ifoods on Ordering food online: a short adventure
  • Evening photoshoot with Margie (and more) « Nederhoed on New camera Canon EOS 1000D
  • R.R. Nederhoed on OmniGraffle equivalent anyone?
  • watziterinhetmais on Where is my mind?
  • warddr on About

Archives

  • June 2013
  • March 2013
  • August 2012
  • March 2012
  • May 2011
  • May 2010
  • March 2010
  • January 2010
  • December 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • January 2009
  • November 2008
  • October 2008
  • July 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2007
  • March 2007
  • February 2007
  • January 2007
  • December 2006
  • November 2006
  • October 2006
  • September 2006
  • August 2006
  • July 2006
  • June 2006
  • May 2006
  • April 2006
  • March 2006
  • January 2006
  • December 2005
  • November 2005
  • October 2005
  • September 2005
  • August 2005

Categories

  • Bitcoin
  • Books
  • Development
  • Finance
  • Idealism
  • JavaScript
  • Language
  • Linux
  • Mining
  • Music
  • Object Oriented Design
  • Personal
  • Photography
  • Python
  • Quotes
  • Ruby
  • Spending
  • The Hague
  • Uncategorized
  • Web
  • XML
  • Zope

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
© Copyright 2019 - Robert-Reinder Nederhoed
Infinity Theme by DesignCoral / WordPress