Last change
on this file since 10136 was 10136, checked in by richardvm, 13 years ago |
domme toevoeging van proxy files
|
-
Property svn:executable
set to
*
|
File size:
724 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 | #
|
---|
3 | # $FreeBSD: ports/dns/maradns/files/maradns.in,v 1.3 2010/02/08 15:08:44 miwi Exp $
|
---|
4 | #
|
---|
5 |
|
---|
6 | # PROVIDE: maradns
|
---|
7 | # REQUIRE: SERVERS
|
---|
8 | # BEFORE: DAEMON
|
---|
9 | # KEYWORD: shutdown
|
---|
10 | #
|
---|
11 |
|
---|
12 | . /etc/rc.subr
|
---|
13 |
|
---|
14 | : ${maradns_enable="NO"}
|
---|
15 | : ${maradns_conf="/usr/local/etc/mararc"}
|
---|
16 |
|
---|
17 |
|
---|
18 | # Nastly hack to allow the MaraDNS bind to the proper variable IP address
|
---|
19 | mara_pre() {
|
---|
20 | IP=`ifconfig ${internalif} | awk '/inet/ { print $2 }'`
|
---|
21 | sed -i .orig 's/^\(ipv4_bind_addresses[\ \t=]*"\).*$/\1'${IP}',127.0.0.1"/g' ${maradns_conf}
|
---|
22 | }
|
---|
23 |
|
---|
24 | name="maradns"
|
---|
25 | rcvar=`set_rcvar`
|
---|
26 | command="/usr/local/bin/duende"
|
---|
27 | command_args="/usr/local/sbin/maradns -f ${maradns_conf}"
|
---|
28 | pidfile="/var/run/${name}.pid"
|
---|
29 | start_precmd=mara_pre
|
---|
30 | load_rc_config $name
|
---|
31 |
|
---|
32 | run_rc_command "$1"
|
---|
33 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.