aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorsat <sat@FreeBSD.org>2006-11-20 21:23:01 +0800
committersat <sat@FreeBSD.org>2006-11-20 21:23:01 +0800
commit3b6eb29a22fc88215cbd9f9a9683fe6011e67e1e (patch)
tree7d30e758b1448e6e9a8de3aac80fb7648b4ecec3 /mail
parent8a924574591df062db2c486d3ccfc61336a4543d (diff)
downloadfreebsd-ports-gnome-3b6eb29a22fc88215cbd9f9a9683fe6011e67e1e.tar.gz
freebsd-ports-gnome-3b6eb29a22fc88215cbd9f9a9683fe6011e67e1e.tar.zst
freebsd-ports-gnome-3b6eb29a22fc88215cbd9f9a9683fe6011e67e1e.zip
- Minor fix to rc.d script
Approved by: Thomas Abthorpe <thomas@goodking.ca>
Diffstat (limited to 'mail')
-rw-r--r--mail/spamass-milter/files/spamass-milter.in10
1 files changed, 4 insertions, 6 deletions
diff --git a/mail/spamass-milter/files/spamass-milter.in b/mail/spamass-milter/files/spamass-milter.in
index 80b5f871d735..f73da3b4a710 100644
--- a/mail/spamass-milter/files/spamass-milter.in
+++ b/mail/spamass-milter/files/spamass-milter.in
@@ -46,11 +46,9 @@ stop_postcmd()
fi
}
-# set defaults
+load_rc_config $name
+: ${spamass_milter_enable="NO"}
+: ${spamass_milter_socket="/var/run/spamass-milter.sock"}
+: ${spamass_milter_flags="-f -p ${spamass_milter_socket}"}
-spamass_milter_enable=${spamass_milter_enable:-"NO"}
-spamass_milter_socket=${spamass_milter_socket:-"/var/run/spamass-milter.sock"}
-spamass_milter_flags=${spamass_milter_flags:-"-f -p ${spamass_milter_socket}"}
-
-load_rc_config ${name}
run_rc_command "$1"