aboutsummaryrefslogtreecommitdiffstats
path: root/mail/sendmail
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2006-08-13 04:10:49 +0800
committerdinoex <dinoex@FreeBSD.org>2006-08-13 04:10:49 +0800
commit0bce957ccdc09d82c6078183ada7bfeb21e186f2 (patch)
tree3bbc70cbbc2f1cb9ab2493a01c2515307b659284 /mail/sendmail
parentc4da77cbe43305c99c9e9fc3ade04078873abd02 (diff)
downloadfreebsd-ports-gnome-0bce957ccdc09d82c6078183ada7bfeb21e186f2.tar.gz
freebsd-ports-gnome-0bce957ccdc09d82c6078183ada7bfeb21e186f2.tar.zst
freebsd-ports-gnome-0bce957ccdc09d82c6078183ada7bfeb21e186f2.zip
- improve error handling
Submitted by: Royce Williams
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
;;
*)