aboutsummaryrefslogtreecommitdiffstats
path: root/mail/sentinel/files
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2003-09-07 21:09:10 +0800
committerache <ache@FreeBSD.org>2003-09-07 21:09:10 +0800
commite460fcb3ffb8339739a973abc2db8177c9cc9ebc (patch)
tree41fa1380621bc42efde251356e3e37472b6cac04 /mail/sentinel/files
parent73b8d7fd41da921f5e6696fdb13cd241ccdfd2e4 (diff)
downloadfreebsd-ports-gnome-e460fcb3ffb8339739a973abc2db8177c9cc9ebc.tar.gz
freebsd-ports-gnome-e460fcb3ffb8339739a973abc2db8177c9cc9ebc.tar.zst
freebsd-ports-gnome-e460fcb3ffb8339739a973abc2db8177c9cc9ebc.zip
Install rc.d script with -dist suffix to not overwrite real one
Set LC_ALL=C before to avoid bad regex surprises when restarting by hand Remove socket after killing
Diffstat (limited to 'mail/sentinel/files')
-rw-r--r--mail/sentinel/files/000.sentinel.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/mail/sentinel/files/000.sentinel.sh b/mail/sentinel/files/000.sentinel.sh
index 0428f2e880f4..08df334defaf 100644
--- a/mail/sentinel/files/000.sentinel.sh
+++ b/mail/sentinel/files/000.sentinel.sh
@@ -14,7 +14,7 @@ start)
if [ -x ${PREFIX}/sbin/sentinel -a -f ${PREFIX}/etc/sentinel.cf ]
then
rm -f ${SOCKET}
- ${PREFIX}/sbin/sentinel -c ${PREFIX}/etc/sentinel.cf -p unix:${SOCKET} -d && echo -n ' sentinel'
+ LC_ALL=C ${PREFIX}/sbin/sentinel -c ${PREFIX}/etc/sentinel.cf -p unix:${SOCKET} -d && echo -n ' sentinel'
fi
;;
stop)
@@ -23,6 +23,7 @@ stop)
if [ -e ${SOCKET} ]
then
killall -KILL sentinel
+ rm -f ${SOCKET}
fi
;;
*)