summaryrefslogtreecommitdiff
path: root/sysutils/py-supervisor/files/supervisord.in
blob: e27a952849f982eb53af3f0f4e03c2358b1f3154 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/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=supervisord_enable

command="%%PREFIX%%/bin/${name}"
command_interpreter="%%PYTHON_CMD%%"
pidfile="%%PIDDIR%%/${name}.pid"

load_rc_config $name

: ${supervisord_enable="NO"}

run_rc_command "$1"