|
Lines 19-34
Link Here
|
| 19 |
name="clamsmtpd" |
19 |
name="clamsmtpd" |
| 20 |
rcvar=${name}_enable |
20 |
rcvar=${name}_enable |
| 21 |
|
21 |
|
|
|
22 |
: ${clamsmtpd_enable="NO"} |
| 23 |
: ${clamsmtpd_conf="%%PREFIX%%/etc/clamsmtpd.conf"} |
| 24 |
: ${clamsmtpd_pid="%%CLAMAV_PID_DIR%%/clamsmtpd.pid"} |
| 25 |
|
| 26 |
load_rc_config ${name} |
| 27 |
|
| 22 |
command=%%PREFIX%%/sbin/${name} |
28 |
command=%%PREFIX%%/sbin/${name} |
| 23 |
command_args="-f ${clamsmtpd_conf} -p ${clamsmtpd_pid}" |
29 |
command_args="-f ${clamsmtpd_conf} -p ${clamsmtpd_pid}" |
| 24 |
required_files=${clamsmtpd_conf} |
30 |
required_files=${clamsmtpd_conf} |
| 25 |
pidfile=${clamsmtpd_pid} |
31 |
pidfile=${clamsmtpd_pid} |
| 26 |
sig_stop=-KILL |
32 |
sig_stop=-KILL |
| 27 |
|
|
|
| 28 |
load_rc_config ${name} |
| 29 |
|
| 30 |
: ${clamsmtpd_enable="NO"} |
| 31 |
: ${clamsmtpd_conf="%%PREFIX%%/etc/clamsmtpd.conf"} |
| 32 |
: ${clamsmtpd_pid="%%CLAMAV_PID_DIR%%/clamsmtpd.pid"} |
| 33 |
|
33 |
|
| 34 |
run_rc_command "$1" |
34 |
run_rc_command "$1" |