diff options
author | Clive Lin <clive@FreeBSD.org> | 2004-03-27 03:59:28 +0000 |
---|---|---|
committer | Clive Lin <clive@FreeBSD.org> | 2004-03-27 03:59:28 +0000 |
commit | 258beff3f6cec581843d245a9763f1be68dc4eb2 (patch) | |
tree | e6b35a9c09e0e542d52d4706aaab2986dfde2d9e /mail/nullmailer | |
parent | 944b238c1bf3fdbc8e137d77ff9560e765d7579f (diff) | |
download | ports-258beff3f6cec581843d245a9763f1be68dc4eb2.tar.gz ports-258beff3f6cec581843d245a9763f1be68dc4eb2.zip |
Notes
Diffstat (limited to 'mail/nullmailer')
-rw-r--r-- | mail/nullmailer/files/nullmail.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mail/nullmailer/files/nullmail.sh b/mail/nullmailer/files/nullmail.sh index 15f5d5270e6a..d32df5c064f3 100644 --- a/mail/nullmailer/files/nullmail.sh +++ b/mail/nullmailer/files/nullmail.sh @@ -16,6 +16,7 @@ RM=/bin/rm LOGGER=/usr/bin/logger KILL=/bin/kill KILLALL=/usr/bin/killall +HEAD=/usr/bin/head PRIORITY=local5.info TAG=${NULLMAILUSER} @@ -26,7 +27,7 @@ start) if [ ! -r ${PIDFILE} ] ; then [ -x ${PREFIX}/sbin/nullmailer-send ] && su -l ${NULLMAILUSER} -c "${PREFIX}/sbin/nullmailer-send 2>&1 | ${LOGGER} -i -p ${PRIORITY} -t ${TAG} &" JUNK=`${PS} -ax` - PID=`${PS} awx | ${GREP} -v awk | ${AWK} '/nullmailer-send/ {print $1}'` + PID=`${PS} awx | ${GREP} -v awk | ${AWK} '/nullmailer-send/ {print $1}' | ${HEAD} -1` echo $PID > ${PIDFILE} else echo ' already running' |