2006-06-23 10:51:02 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: splatd
|
|
|
|
# REQUIRE: DAEMON
|
|
|
|
# BEFORE: LOGIN
|
|
|
|
# KEYWORD: shutdown
|
|
|
|
|
2010-03-27 01:15:24 +01:00
|
|
|
. /etc/rc.subr
|
2006-06-23 10:51:02 +02:00
|
|
|
|
|
|
|
name=splatd
|
2012-01-14 09:57:23 +01:00
|
|
|
rcvar=splatd_enable
|
2006-06-23 10:51:02 +02:00
|
|
|
|
|
|
|
command=%%PREFIX%%/sbin/splatd
|
|
|
|
command_interpreter="%%PYTHON_CMD%%"
|
|
|
|
command_args="-f %%PREFIX%%/etc/splat.conf -p /var/run/$name.pid"
|
|
|
|
pidfile="/var/run/$name.pid"
|
|
|
|
required_files=%%PREFIX%%/etc/splat.conf
|
|
|
|
|
|
|
|
# set default
|
|
|
|
splatd_enable=${splatd_enable:-"NO"}
|
|
|
|
|
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|