aboutsummaryrefslogtreecommitdiff
path: root/mail/sentinel
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2003-09-07 04:34:36 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2003-09-07 04:34:36 +0000
commit275308e55ff8339e2b23332c2012fe5e1cf4c16f (patch)
tree872929a045931aa87550c1ee68425c0f8fd3ab77 /mail/sentinel
parent9648b0fd17dc216f3f42fe67be59a83402300a7b (diff)
downloadports-275308e55ff8339e2b23332c2012fe5e1cf4c16f.tar.gz
ports-275308e55ff8339e2b23332c2012fe5e1cf4c16f.zip
Test for sockect presence with -e, not -f
Always remove socket before start, it may left after panic reboot
Notes
Notes: svn path=/head/; revision=88666
Diffstat (limited to 'mail/sentinel')
-rw-r--r--mail/sentinel/files/000.sentinel.sh8
1 files changed, 2 insertions, 6 deletions
diff --git a/mail/sentinel/files/000.sentinel.sh b/mail/sentinel/files/000.sentinel.sh
index db8fcf043587..3263f0b2ab49 100644
--- a/mail/sentinel/files/000.sentinel.sh
+++ b/mail/sentinel/files/000.sentinel.sh
@@ -13,16 +13,12 @@ case "$1" in
start)
if [ -x ${PREFIX}/sbin/sentinel -a -f ${PREFIX}/etc/sentinel.cf ]
then
- if [ -f ${SOCKET} ]
- then
- killall sentinel
- rm -f $SOCKET
- fi
+ rm -f ${SOCKET}
${PREFIX}/sbin/sentinel -c ${PREFIX}/etc/sentinel.cf -p unix:${SOCKET} -d && echo -n ' sentinel'
fi
;;
stop)
- if [ -f ${SOCKET} ]
+ if [ -e ${SOCKET} ]
then
killall sentinel
fi