Entries in /etc/init.d for startup

Bug #376200 reported by Paul Everitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL3
Fix Released
Medium
LarsN

Bug Description

Make sure that KARL-related software starts up on reboot:

- supervisord

- Apache

- anything else?

I suggest testing this, perhaps on Friday. (Lars, as FYI, M14 is this week.)

Tags: operations
tags: added: operations
removed: migration
summary: - Entried in /etc/init.d for startup
+ Entries in /etc/init.d for startup
Revision history for this message
LarsN (lars-sixfeetup) wrote :

Added the following script and added it to chkconfig:

[lars@kdiab ~]$ cat /etc/init.d/supervisor
#!/bin/sh
#
# chkconfig: - 85 15
# description: Supervisor3: A System for Allowing the Control of Process State on UNIX
# processname: supervisord
# config: /etc/supervisord.conf

# See how we were called.
case "$1" in
  start)
    su zope -c '/var/db/karl3/bin/supervisord'
    ;;
  stop)
    kill `cat /tmp/supervisord.pid`
    rm /tmp/supervisord.pid
    ;;
  *)
    echo $"Usage: `basename $0` {start|stop}"
esac

exit $RETVAL

Revision history for this message
LarsN (lars-sixfeetup) wrote :

The init.d script does work to start the server automatically on a reboot.
I weighted the supervisord script higher than the httpd script so it should start the ZEO before apache starts.

Changed in karl3:
status: New → Fix Committed
LarsN (lars-sixfeetup)
Changed in karl3:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.