diff options
Diffstat (limited to 'dns/dualserver/files/dualserver.in')
-rw-r--r-- | dns/dualserver/files/dualserver.in | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dns/dualserver/files/dualserver.in b/dns/dualserver/files/dualserver.in new file mode 100644 index 000000000000..b094232a491b --- /dev/null +++ b/dns/dualserver/files/dualserver.in @@ -0,0 +1,28 @@ +#!/bin/sh + +# $FreeBSD$ +# +# PROVIDE: dualserver +# REQUIRE: SERVERS +# BEFORE: +# KEYWORD: shutdown + +. /etc/rc.subr + +name="dualserver" +rcvar=dualserver_enable +start_cmd="dualserver_startcmd" +stop_cmd="dualserver_stopcmd" + +dualserver_startcmd () +{ +%%PREFIX%%/sbin/dualserver +} + +dualserver_stopcmd () +{ +killall dualserver +} + +load_rc_config $name +run_rc_command "$1" |