diff options
author | dinoex <dinoex@FreeBSD.org> | 2006-08-13 04:10:49 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2006-08-13 04:10:49 +0800 |
commit | 0bce957ccdc09d82c6078183ada7bfeb21e186f2 (patch) | |
tree | 3bbc70cbbc2f1cb9ab2493a01c2515307b659284 /mail/sendmail | |
parent | c4da77cbe43305c99c9e9fc3ade04078873abd02 (diff) | |
download | freebsd-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.sh | 8 |
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 ;; *) |