summaryrefslogtreecommitdiff
path: root/mail/nullmailer/files/nullmail.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mail/nullmailer/files/nullmail.sh')
-rw-r--r--mail/nullmailer/files/nullmail.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/mail/nullmailer/files/nullmail.sh b/mail/nullmailer/files/nullmail.sh
index adf6705c7890..15f5d5270e6a 100644
--- a/mail/nullmailer/files/nullmail.sh
+++ b/mail/nullmailer/files/nullmail.sh
@@ -24,9 +24,9 @@ case "$1" in
start)
echo -n ' nullmailer'
if [ ! -r ${PIDFILE} ] ; then
- [ -x ${PREFIX}/sbin/nullmailer-send ] && su -l ${NULLMAILUSER} -c "${PREFIX}/sbin/nullmailer-send | ${LOGGER} -p ${PRIORITY} -t ${TAG} 2>&1 &"
+ [ -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} -ax | ${GREP} -e nullmailer-send$ | ${AWK} '{print $1}'`
+ PID=`${PS} awx | ${GREP} -v awk | ${AWK} '/nullmailer-send/ {print $1}'`
echo $PID > ${PIDFILE}
else
echo ' already running'
@@ -35,8 +35,7 @@ start)
stop)
echo -n ' nullmailer'
if [ -r ${PIDFILE} ] ; then
-# ${KILL} -15 `${CAT} ${PIDFILE}` > /dev/null
- ${KILLALL} -15 nullmailer-send > /dev/null
+ ${KILL} `${CAT} ${PIDFILE}` > /dev/null
${RM} -f ${PIDFILE}
fi
;;