aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorashish <ashish@FreeBSD.org>2014-06-04 08:32:31 +0800
committerashish <ashish@FreeBSD.org>2014-06-04 08:32:31 +0800
commit4ffec889652b15c17f0c18143abbe47a675ba8cd (patch)
tree581c1dceed32a416d6f73e9c98d0ef082339250c /mail
parent74f8bd4a724b83e290c4073cfadc9e417be36161 (diff)
downloadfreebsd-ports-gnome-4ffec889652b15c17f0c18143abbe47a675ba8cd.tar.gz
freebsd-ports-gnome-4ffec889652b15c17f0c18143abbe47a675ba8cd.tar.zst
freebsd-ports-gnome-4ffec889652b15c17f0c18143abbe47a675ba8cd.zip
- Make rc.d script sends signals only to the parent daemon process to
fix a race condition. Submitted by: naddy (via private email)
Diffstat (limited to 'mail')
-rw-r--r--mail/opensmtpd-devel/Makefile1
-rw-r--r--mail/opensmtpd-devel/files/smtpd.in5
2 files changed, 6 insertions, 0 deletions
diff --git a/mail/opensmtpd-devel/Makefile b/mail/opensmtpd-devel/Makefile
index c212c0b5b108..4b3a822baea6 100644
--- a/mail/opensmtpd-devel/Makefile
+++ b/mail/opensmtpd-devel/Makefile
@@ -3,6 +3,7 @@
PORTNAME= opensmtpd
PORTVERSION= 201405202105
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= mail
MASTER_SITES= http://www.opensmtpd.org/archives/ \
diff --git a/mail/opensmtpd-devel/files/smtpd.in b/mail/opensmtpd-devel/files/smtpd.in
index ddb3fedae6f9..63e31a426b19 100644
--- a/mail/opensmtpd-devel/files/smtpd.in
+++ b/mail/opensmtpd-devel/files/smtpd.in
@@ -18,6 +18,11 @@
. /etc/rc.subr
+check_process()
+{
+ /bin/pgrep -f 'smtpd: \[priv\]'
+}
+
name="smtpd"
rcvar=smtpd_enable