Lines 23-34
load_rc_config $name
Link Here
|
23 |
|
23 |
|
24 |
: ${postfwd_enable:="NO"} |
24 |
: ${postfwd_enable:="NO"} |
25 |
: ${postfwd_flags="--shortlog --summary=600 --cache=600 --cache-rbl-timeout=3600 --cleanup-requests=1200 --cleanup-rbls=1800 --cleanup-rates=1200"} |
25 |
: ${postfwd_flags="--shortlog --summary=600 --cache=600 --cache-rbl-timeout=3600 --cleanup-requests=1200 --cleanup-rbls=1800 --cleanup-rates=1200"} |
|
|
26 |
: ${postfwd_interface="127.0.0.1"} |
27 |
: ${postfwd_port="10040"} |
26 |
|
28 |
|
27 |
pidfile=${postfwd_pidfile:="/var/run/${name}.pid"} |
29 |
pidfile=${postfwd_pidfile:="/var/run/${name}.pid"} |
28 |
required_files=${postfwd_config:="%%PREFIX%%/etc/${name}.conf"} |
30 |
required_files=${postfwd_config:="%%PREFIX%%/etc/${name}.conf"} |
29 |
|
31 |
|
30 |
command=%%PREFIX%%/bin/${name} |
32 |
command=%%PREFIX%%/bin/${name} |
31 |
command_args="--daemon --file=${required_files} --pidfile=${pidfile} --interface=127.0.0.1 --port=10040 --user=nobody --group=nobody" |
33 |
command_args="--daemon --file=${required_files} --pidfile=${pidfile} --interface=${postfwd_interface} --port=${postfwd_port} --user=nobody --group=nobody" |
32 |
|
34 |
|
33 |
start_precmd="${name}_check" |
35 |
start_precmd="${name}_check" |
34 |
status_cmd="${name}_status" |
36 |
status_cmd="${name}_status" |