since rc.subr adds that already. In 3 cases it meant removing a wrongly specified TERM, since that is the default.
34 lines
760 B
Bash
34 lines
760 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: clamsmtpd
|
|
# REQUIRE: DAEMON %%CLAMD%%
|
|
#
|
|
# Add the fellowing line to /etc/rc.conf.local or /etc/rc.conf
|
|
# to enable clamsmtpd:
|
|
#
|
|
# clamsmtpd_enable (bool): Set it to "YES" to enable clamsmtpd
|
|
# Default is "NO".
|
|
# clamsmtpd_conf (file): Set location of your configuration file.
|
|
# Default is "%%PREFIX%%/etc/clamsmtpd.conf"
|
|
#
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name="clamsmtpd"
|
|
rcvar=${name}_enable
|
|
|
|
: ${clamsmtpd_enable="NO"}
|
|
: ${clamsmtpd_conf="%%PREFIX%%/etc/clamsmtpd.conf"}
|
|
: ${clamsmtpd_pid="%%CLAMAV_PID_DIR%%/clamsmtpd.pid"}
|
|
|
|
load_rc_config ${name}
|
|
|
|
command=%%PREFIX%%/sbin/${name}
|
|
command_args="-f ${clamsmtpd_conf} -p ${clamsmtpd_pid}"
|
|
required_files=${clamsmtpd_conf}
|
|
pidfile=${clamsmtpd_pid}
|
|
sig_stop=KILL
|
|
|
|
run_rc_command "$1"
|