1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/dns/yadifa/files/yadifad.in
2013-11-23 14:13:15 +00:00

33 lines
582 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: yadifad
# REQUIRE: SERVERS cleanvar
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable yadifad:
#
# yadifad_enable="YES"
# # optional
# yadifad_config="%%PREFIX%%/etc/yadifad.conf"
. /etc/rc.subr
name=yadifad
rcvar=yadifad_enable
load_rc_config ${name}
: ${yadifad_enable:="NO"}
: ${yadifad_config="%%PREFIX%%/etc/yadifad.conf"}
command=%%PREFIX%%/sbin/${name}
procname=%%PREFIX%%/sbin/${name}
pidfile=/var/run/${name}.pid
command_args="-c ${yadifad_config} -d"
required_files=${yadifad_config}
run_rc_command "$1"