diff options
author | Dima Panov <fluffy@FreeBSD.org> | 2016-05-27 07:02:55 +0000 |
---|---|---|
committer | Dima Panov <fluffy@FreeBSD.org> | 2016-05-27 07:02:55 +0000 |
commit | 8ca6393dd40544d9c095d7a52c31e5bcdc2b1e85 (patch) | |
tree | 5209307cd7828e4e3142c42a97bbb39de475d1a7 /mail/opensmtpd-devel/files | |
parent | 0b8bed9f5412d258ec66124fce04f76bf7a146fa (diff) | |
download | ports-8ca6393dd40544d9c095d7a52c31e5bcdc2b1e85.tar.gz ports-8ca6393dd40544d9c095d7a52c31e5bcdc2b1e85.zip |
Notes
Diffstat (limited to 'mail/opensmtpd-devel/files')
-rw-r--r-- | mail/opensmtpd-devel/files/smtpd.in | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/mail/opensmtpd-devel/files/smtpd.in b/mail/opensmtpd-devel/files/smtpd.in index 5530b1c2b14d..46fe0be02ed0 100644 --- a/mail/opensmtpd-devel/files/smtpd.in +++ b/mail/opensmtpd-devel/files/smtpd.in @@ -18,11 +18,6 @@ . /etc/rc.subr -check_process() -{ - /bin/pgrep -j none -f "^$smtpd_procname\$" -} - name="smtpd" rcvar=smtpd_enable @@ -34,18 +29,21 @@ extra_commands="configtest" load_rc_config $name : ${smtpd_enable:="NO"} -: ${smtpd_config:="%%PREFIX%%/etc/mail/smtpd.conf"} -: ${smtpd_procname:="%%PREFIX%%/sbin/smtpd"} +: ${smtpd_config:="%%PREFIX%%/etc/mail/${name}.conf"} +: ${smtpd_procname:="%%PREFIX%%/sbin/${name}"} : ${smtpd_flags:=""} command=${smtpd_procname} +command_args="-f ${smtpd_config} ${command_args}" +required_files="${smtpd_config}" procname=${smtpd_procname} +pidfile="/var/run/${name}.pid" smtpd_checkconfig() { echo "Performing sanity check on smtpd configuration:" - eval ${command} ${smtpd_flags} -n + eval ${command} ${command_args} ${smtpd_flags} -n } smtpd_precmd() |