|
Line 0
Link Here
|
|
|
1 |
#!/bin/sh |
| 2 |
# |
| 3 |
# $FreeBSD$ |
| 4 |
# |
| 5 |
|
| 6 |
# PROVIDE: dnsproxy |
| 7 |
# REQUIRE: NETWORKING SERVERS |
| 8 |
# BEFORE: DAEMON |
| 9 |
# KEYWORD: shutdown |
| 10 |
|
| 11 |
# |
| 12 |
# Define these spamd_* variables in one of these files: |
| 13 |
# /etc/rc.conf |
| 14 |
# /etc/rc.conf.local |
| 15 |
# |
| 16 |
# dnsproxy_enable="YES" # Run the dnsproxy(1) daemon (YES/NO). |
| 17 |
# dnsproxy_flags="" # Extra flags for dnsproxy(1) (if enabled). |
| 18 |
# |
| 19 |
# DO NOT CHANGE THESE DEFAULT VALUES HERE |
| 20 |
# |
| 21 |
dnsproxy_enable=${dnsproxy_enable:-"NO"} |
| 22 |
command_args=${dnsproxy_flags:-"-c %%PREFIX%%/etc/dnsproxy.conf -d"} |
| 23 |
|
| 24 |
. %%RC_SUBR%% |
| 25 |
|
| 26 |
name="dnsproxy" |
| 27 |
rcvar=`set_rcvar` |
| 28 |
|
| 29 |
command="%%PREFIX%%/sbin/dnsproxy" |
| 30 |
|
| 31 |
load_rc_config $name |
| 32 |
run_rc_command "$1" |