diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2014-03-09 22:16:24 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-03-09 22:16:24 +0000 |
commit | 103f617549680e32a5bf2dba99d1e91aec2bf477 (patch) | |
tree | 15420dfd433d784dc718a3459a0323d996a0cb5f /mail/p5-Mail-SpamAssassin/files | |
parent | - Update to 2.00.00 (diff) |
- Tidy the Makefile a bit more
- Break database backends out into their own OPTIONS group, for clarity
- Generalize the plugin enabling process to make it easier to add support
for new ones
- Remove an unnecessary rc.subr function, and use ${name} in the rc script
- Put some marginally helpful comments in the rc script
No PORTREVISION bump as all these changes don't affect the finished
product, sortof.
Notes
Notes:
svn path=/head/; revision=347704
Diffstat (limited to 'mail/p5-Mail-SpamAssassin/files')
-rw-r--r-- | mail/p5-Mail-SpamAssassin/files/sa-spamd.in | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/mail/p5-Mail-SpamAssassin/files/sa-spamd.in b/mail/p5-Mail-SpamAssassin/files/sa-spamd.in index 5398ea6fa7e7..fb2301c3a1da 100644 --- a/mail/p5-Mail-SpamAssassin/files/sa-spamd.in +++ b/mail/p5-Mail-SpamAssassin/files/sa-spamd.in @@ -9,17 +9,20 @@ # KEYWORD: shutdown # -# Add the following lines to /etc/rc.conf to enable spamd: +# Add the following line to /etc/rc.conf to enable spamd: # -#spamd_enable="YES" +# spamd_enable="YES" # -# See spamd(8) for flags +# You can pass flags to spamd with spamd_flags="..." +# To change the user that spamd runs as, use +# +# spamd_flags="-u USER [-H /path/to/home... we suggest /var/spool/spamd]" # . /etc/rc.subr name=spamd -rcvar=spamd_enable +rcvar=${name}_enable extra_commands="reload" load_rc_config $name @@ -28,16 +31,9 @@ load_rc_config $name : ${spamd_enable:="NO"} : ${spamd_flags="-c %%SQL_FLAG%% %%RUN_AS_USER%%"} -pidfile=${spamd_pidfile:-"/var/run/spamd/spamd.pid"} -command=%%PREFIX%%/bin/spamd +pidfile=${spamd_pidfile:-"/var/run/${name}/${name}.pid"} +command=%%PREFIX%%/bin/${name} command_args="-d -r ${pidfile}" required_dirs=%%PREFIX%%/share/spamassassin -stop_postcmd=stop_postcmd - -stop_postcmd() -{ - rm -f $pidfile -} - run_rc_command "$1" |