diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 2003-09-07 04:34:36 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 2003-09-07 04:34:36 +0000 |
commit | 275308e55ff8339e2b23332c2012fe5e1cf4c16f (patch) | |
tree | 872929a045931aa87550c1ee68425c0f8fd3ab77 /mail/sentinel | |
parent | 9648b0fd17dc216f3f42fe67be59a83402300a7b (diff) | |
download | ports-275308e55ff8339e2b23332c2012fe5e1cf4c16f.tar.gz ports-275308e55ff8339e2b23332c2012fe5e1cf4c16f.zip |
Notes
Diffstat (limited to 'mail/sentinel')
-rw-r--r-- | mail/sentinel/files/000.sentinel.sh | 8 |
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 |