#!/bin/sh # PROVIDE: TYPO # REQUIRE: DAEMON # KEYWORD: shutdown . /etc/rc.subr name=typo rcvar=${name}_enable command="/usr/local/bin/mongrel_rails" load_rc_config $name : ${typo_enable="NO"} : ${typo_dir="/usr/local/www/typo-4.0.3"} : ${typo_mongrel_config="config/mongrel.yml"} start_cmd="${command} start -c ${typo_dir} -C ${typo_mongrel_config}" stop_cmd="${command} stop -c ${typo_dir}" restart_cmd="${command} restart -c ${typo_dir}" run_rc_command "$1"