#!/bin/sh

# PROVIDE: miniircd
# REQUIRE: DAEMON

if [ -f /etc/rc.subr ]; then
	. /etc/rc.subr
fi

name="miniircd"
rcvar=$name
command="/usr/pkg/sbin/miniircd"
command_interpreter="/usr/pkg/bin/python3.12"
command_args="-d"

miniircd_flags=${miniircd_flags-"--setuid miniircd:nobody"}

if [ -f /etc/rc.subr ]; then
	load_rc_config $name
	run_rc_command "$1"
else
	echo -n "${name}"
	${command} ${miniircd_flags} ${command_args} 
fi
