#!/bin/sh # $TheSupernovaDuo$ # vim: ft=sh # PROVIDE: suika # REQUIRE: DAEMON # BEFORE: LOGIN # KEYWORD: shutdown . /etc/rc.subr name="suika" rcvar="${name}" command="%%PREFIX/bin/${name}" command_args="--config %%PREFIX%%/etc/suika/config" pidfile="/var/run/${name}.pid" start_cmd="${name}_start" suika_start() { printf "Starting %s..." "${name}" ${command} ${command_args} pgrep -n ${name} > ${pidfile} } load_rc_config ${name} run_rc_command "$1"