1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

- improve error handling

Submitted by:	Royce Williams
This commit is contained in:
Dirk Meyer 2006-08-12 20:10:49 +00:00
parent 700d625ab3
commit ab2d61e614
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=170432

View File

@ -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
;;
*)