blob: 968bb4982fc5508abbc6a802d265fb4bd6b917ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/sh
#
# $NetBSD: mydns.sh,v 1.1.1.1 2005/10/29 16:56:15 minskim Exp $
#
# PROVIDE: mydns
# REQUIRE: SERVERS
# BEFORE: DAEMON
if [ -f /etc/rc.subr ]; then
. /etc/rc.subr
fi
name="mydns"
rcvar=$name
command="@PREFIX@/sbin/mydns"
command_args="-b"
required_files="@PKG_SYSCONFDIR@/mydns.conf"
extra_commands="reload"
reload_sig="HUP"
if [ -f /etc/rc.subr ]; then
load_rc_config $name
run_rc_command "$1"
else
@ECHO@ -n " ${name}$"
${command} ${command_args} ${mydns_flags}
fi
|