#!/bin/sh # $TheSupernovaDuo$ # vim: ft=sh # PROVIDE: suika # REQUIRE: DAEMON # BEFORE: LOGIN # KEYWORD: shutdown . /etc/rc.subr name="suika" desc="A drunk IRC bouncer" rcvar="suika_enable" : ${suika_user="ircd"} command="%%PREFIX%%/bin/suika" pidfile="/var/run/suika.pid" required_files="%%PREFIX%%/etc/suika/config" start_cmd="suika_start" suika_start() { /usr/sbin/daemon -f -p ${pidfile} -u ${suika_user} -l daemon ${command} --config ${required_files} } load_rc_config "$name" run_rc_command "$1"