9aac569eaa
Where necessary add $FreeBSD$ to the file No PORTREVISION bump necessary because this is a no-op
26 lines
449 B
Bash
26 lines
449 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: splatd
|
|
# REQUIRE: DAEMON
|
|
# BEFORE: LOGIN
|
|
# KEYWORD: shutdown
|
|
|
|
. /etc/rc.subr
|
|
|
|
name=splatd
|
|
rcvar=splatd_enable
|
|
|
|
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"
|