summaryrefslogtreecommitdiff
path: root/mail/sendmail
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2006-08-12 20:10:49 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2006-08-12 20:10:49 +0000
commitab2d61e614a31553039c3724722842fc0d05c182 (patch)
tree02929c4973d6b57ccf931c23cdcc5ecbfffc4f42 /mail/sendmail
parentOK after some more discussions with Simon it appeared that the ,2 (diff)
- improve error handling
Submitted by: Royce Williams
Notes
Notes: svn path=/head/; revision=170432
Diffstat (limited to 'mail/sendmail')
-rw-r--r--mail/sendmail/files/sendmail.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/mail/sendmail/files/sendmail.sh b/mail/sendmail/files/sendmail.sh
index a63031b87bd1..bafd58a6ab55 100644
--- a/mail/sendmail/files/sendmail.sh
+++ b/mail/sendmail/files/sendmail.sh
@@ -34,21 +34,29 @@ stop)
then
kill `head -1 /var/run/sendmail.pid`
rm -f /var/run/sendmail.pid
+ else
+ echo "ERROR: pidfile /var/run/sendmail.pid does not exist."
fi
if test -e /var/spool/clientmqueue/sm-client.pid
then
kill `head -1 /var/spool/clientmqueue/sm-client.pid`
rm -f /var/spool/clientmqueue/sm-client.pid
+ else
+ echo "ERROR: pidfile /var/spool/clientmqueue/sm-client.pid does not exist."
fi
;;
restart)
if test -e /var/run/sendmail.pid
then
kill -1 `head -1 /var/run/sendmail.pid`
+ else
+ echo "ERROR: pidfile /var/run/sendmail.pid does not exist."
fi
if test -e /var/spool/clientmqueue/sm-client.pid
then
kill -1 `head -1 /var/spool/clientmqueue/sm-client.pid`
+ else
+ echo "ERROR: pidfile /var/spool/clientmqueue/sm-client.pid does not exist."
fi
;;
*)