freebsd-ports/sysutils/py-supervisor/files/supervisord.in
Li-Wen Hsu cb6ce712b1 - Update to 3.0a8
- Add rc script
- Add sample configuration file

PR:		ports/143799
Submitted by:	Hizbulin Ildar <hizel AT vyborg.ru> (maintainer)
2010-04-03 17:37:19 +00:00

28 lines
446 B
Bash

#!/bin/sh
# $FreeBSD$
#
# PROVIDE: supervisord
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf.local or /etc/rc.conf
# to enable supervisord:
#
# supervisord_enable="YES"
#
. /etc/rc.subr
name="supervisord"
rcvar=`set_rcvar`
command="%%PREFIX%%/bin/${name}"
command_interpreter="%%PYTHON_CMD%%"
pidfile="%%PIDDIR%%/${name}.pid"
load_rc_config $name
: ${supervisord_enable="NO"}
run_rc_command "$1"