Skip to content

Instantly share code, notes, and snippets.

@fireburnheart2005
Last active August 29, 2015 14:06
Show Gist options
  • Select an option

  • Save fireburnheart2005/b607b2ad9659eef4a679 to your computer and use it in GitHub Desktop.

Select an option

Save fireburnheart2005/b607b2ad9659eef4a679 to your computer and use it in GitHub Desktop.
Config auto start /etc/init.d/supervisord
#!/bin/sh
#
# /etc/rc.d/init.d/supervisord
#
# Supervisor is a client/server system that
# allows its users to monitor and control a
# number of processes on UNIX-like operating
# systems.
#
# chkconfig: - 64 36
# description: Supervisor Server
# processname: supervisord
# Source init functions
. /etc/rc.d/init.d/functions
prog="supervisord"
prefix="/usr/"
exec_prefix="${prefix}"
prog_bin="${exec_prefix}/bin/supervisord -c /etc/supervisord.conf"
PIDFILE="/var/run/$prog.pid"
start()
{
echo -n $"Starting $prog: "
daemon $prog_bin --pidfile $PIDFILE
retval=$?
"/etc/init.d/supervisord" 64L, 1012C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment