
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja> git-svn-id: file:///srv/svn/repo/toyohime/trunk@114 922d331f-388e-da47-97a9-ad700dc0b8b9
27 lines
627 B
Bash
27 lines
627 B
Bash
#!/bin/sh
|
|
# $TheSupernovaDuo$
|
|
#
|
|
# PROVIDE: toyohime
|
|
# REQUIRE: DAEMON NETWORKING
|
|
# BEFORE: LOGIN
|
|
# KEYWORD: shutdown
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="toyohime"
|
|
rcvar="${name}_enable"
|
|
|
|
: ${toyohime_enable="NO"}
|
|
: ${toyohime_fqdn="localhost"}
|
|
: ${toyohime_user="www"}
|
|
: ${toyohime_group="www"}
|
|
: ${toyohime_repos="/usr/local/etc/toyohime-repos"}
|
|
: ${toyohime_address="127.0.0.1:8080"}
|
|
|
|
command="/usr/sbin/daemon"
|
|
pidfile="/var/run/${name}.pid"
|
|
command_args="-p ${pidfile} -u ${toyohime_user} /usr/local/bin/${name} -listen ${toyohime_address} -index -watch ${toyohime_fqdn} ${toyohime_repos}"
|
|
|
|
load_rc_config "${name}"
|
|
run_rc_command "$1"
|