#!/bin/sh
#
# $OpenBSD: supervisord.rc,v 1.1.1.1 2014/05/14 09:56:44 jasper Exp $

daemon="/usr/local/bin/supervisord"
daemon_flags="-c /etc/supervisord.conf --pidfile /var/run/supervisor/supervisord.pid"

. /etc/rc.d/rc.subr

pexp="/usr/local/bin/python2.7 ${daemon}${daemon_flags:+ ${daemon_flags}}"
rc_reload=YES

rc_pre() {
	install -d /var/run/supervisor
}

rc_cmd $1
