diff options
author | perky <perky@FreeBSD.org> | 2002-07-11 18:08:01 +0000 |
---|---|---|
committer | perky <perky@FreeBSD.org> | 2002-07-11 18:08:01 +0000 |
commit | 824055bd5fe81a14ca93a4703b247ed10b85da5e (patch) | |
tree | 6757f173fe548e0491c7ec940eb246ec062ec8dc /mail/spamass-milter | |
parent | ca57e244a3b45dbcf0bd4d6e8fc7dcfb481c72fa (diff) | |
download | FreeBSD-ports-824055bd5fe81a14ca93a4703b247ed10b85da5e.zip FreeBSD-ports-824055bd5fe81a14ca93a4703b247ed10b85da5e.tar.gz |
Send SIGHUP to sendmail when start or stop spamass-milter daemon.
Submitted by: maintainer
Diffstat (limited to 'mail/spamass-milter')
-rw-r--r-- | mail/spamass-milter/Makefile | 1 | ||||
-rw-r--r-- | mail/spamass-milter/files/spamass-milter.sh.dist | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/mail/spamass-milter/Makefile b/mail/spamass-milter/Makefile index 06310c4..78058ef 100644 --- a/mail/spamass-milter/Makefile +++ b/mail/spamass-milter/Makefile @@ -7,6 +7,7 @@ PORTNAME= spamass-milter PORTVERSION= 0.1.1 +PORTREVISION= 1 CATEGORIES= mail MASTER_SITES= http://freesoftware.fsf.org/download/spamass-milt/ diff --git a/mail/spamass-milter/files/spamass-milter.sh.dist b/mail/spamass-milter/files/spamass-milter.sh.dist index 9147be9..f1116fa 100644 --- a/mail/spamass-milter/files/spamass-milter.sh.dist +++ b/mail/spamass-milter/files/spamass-milter.sh.dist @@ -10,6 +10,8 @@ start) then "${DAEMON}" "${SOCKET}" & echo $! > "${PIDFILE}" + sleep 1 + kill -HUP `head -1 /var/run/sendmail.pid` echo -n ' spamass-milter' fi ;; @@ -19,6 +21,8 @@ stop) read -r pid junk < "${PIDFILE}" kill ${pid} rm -f "${SOCKET}" "${PIDFILE}" + sleep 1 + kill -HUP `head -1 /var/run/sendmail.pid` echo -n ' spamass-milter' fi ;; |