#!/bin/sh
#
# $NetBSD: supervisord.sh,v 1.2 2023/07/19 12:50:56 wiz Exp $
#
# PROVIDE: supervisord
# REQUIRE: DAEMON

. /etc/rc.subr

name="supervisord"
rcvar=${name}
command="/usr/pkg/bin/supervisord-3.9"
command_interpreter="/usr/pkg/bin/python3.9"
required_files="/usr/pkg/etc/supervisord.conf"
pidfile="/var/run/supervisord.pid"
supervisord_flags="-c /usr/pkg/etc/supervisord.conf"

load_rc_config $name
run_rc_command "$1"
