diff options
Diffstat (limited to 'mail/smtptrapd/files/smtptrapd.sh')
-rw-r--r-- | mail/smtptrapd/files/smtptrapd.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/mail/smtptrapd/files/smtptrapd.sh b/mail/smtptrapd/files/smtptrapd.sh new file mode 100644 index 000000000000..44b2f6dec8e4 --- /dev/null +++ b/mail/smtptrapd/files/smtptrapd.sh @@ -0,0 +1,30 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: smtptrapd +# REQUIRE: LOGIN +# BEFORE: mail +# KEYWORD: FreeBSD shutdown + +# +# Add the following lines to /etc/rc.conf to enable smtptrapd: +# +#smtptrapd_enable="YES" +# +# Run smtptrapd -h for flags +# + +. %%RC_SUBR%% + +name=smtptrapd +rcvar=`set_rcvar` + +command=%%PREFIX%%/bin/smtptrapd + +smtptrapd_enable=${smtptrapd_enable:-"NO"} +smtptrapd_flags=${smtptrapd_flags:-"-c /var/run/smtptrapd-root"} + +load_rc_config $name +run_rc_command "$1" |