mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
f3a13d06cd
Copy maradns 1.4.14 to dns/maradns1. Sponsored by: Absolight
26 lines
417 B
Bash
26 lines
417 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: zoneserver
|
|
# REQUIRE: SERVERS
|
|
# BEFORE: DAEMON
|
|
# KEYWORD: shutdown
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
: ${zoneserver_enable="NO"}
|
|
: ${maradns_conf="%%ETCDIR%%/mararc"}
|
|
|
|
name="zoneserver"
|
|
rcvar=zoneserver_enable
|
|
command="%%PREFIX%%/bin/duende"
|
|
pidfile="/var/run/${name}.pid"
|
|
command_args="--pid=${pidfile} %%PREFIX%%/sbin/zoneserver -f ${maradns_conf}"
|
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|