aboutsummaryrefslogtreecommitdiffstats
path: root/mail/sentinel/files
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2003-09-07 12:34:36 +0800
committerache <ache@FreeBSD.org>2003-09-07 12:34:36 +0800
commitf81e9ae220e6bb301fd94aeaa8138f08ec75c063 (patch)
tree4d29fafafe5aa6ec01dbb04511937d439bc3618d /mail/sentinel/files
parent567b0a28c96d3893d4bcef1b3dd949f4d6544aab (diff)
downloadfreebsd-ports-gnome-f81e9ae220e6bb301fd94aeaa8138f08ec75c063.tar.gz
freebsd-ports-gnome-f81e9ae220e6bb301fd94aeaa8138f08ec75c063.tar.zst
freebsd-ports-gnome-f81e9ae220e6bb301fd94aeaa8138f08ec75c063.zip
Test for sockect presence with -e, not -f
Always remove socket before start, it may left after panic reboot
Diffstat (limited to 'mail/sentinel/files')
-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