diff options
Diffstat (limited to 'security/amavisd-milter/files/amavisd-milter.sh.in')
-rw-r--r-- | security/amavisd-milter/files/amavisd-milter.sh.in | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/security/amavisd-milter/files/amavisd-milter.sh.in b/security/amavisd-milter/files/amavisd-milter.sh.in index cd0064d7db96..209963def1fb 100644 --- a/security/amavisd-milter/files/amavisd-milter.sh.in +++ b/security/amavisd-milter/files/amavisd-milter.sh.in @@ -14,19 +14,20 @@ #amavisd_milter_enable="YES" # -# Set defaults -amavisd_milter_enable="NO" -amavisd_milter_flags="" -amavisd_milter_pidfile="%%AMAVISGROUP%%/amavisd-milter.pid" -amavisd_milter_user="%%AMAVISUSER%%" - . %%RC_SUBR%% name="amavisd_milter" rcvar=`set_rcvar` +load_rc_config $name + +# Set defaults +: ${amavisd_milter_enable:="NO"} +: ${amavisd_milter_flags:=""} +: ${amavisd_milter_pidfile:="%%AMAVISDIR%%/amavisd-milter.pid"} +: ${amavisd_milter_user:="%%AMAVISUSER%%"} + command="%%PREFIX%%/sbin/amavisd-milter" required_files="%%PREFIX%%/etc/amavisd.conf" -load_rc_config $name run_rc_command "$1" |