From: Mark Wooding Date: Wed, 25 Apr 2012 20:09:38 +0000 (+0100) Subject: init/tripe-init.in: Look for the socket in the correct place. X-Git-Tag: 1.0.0pre11~13 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/tripe/commitdiff_plain/6c3803c4a52101bf4032912ae28e740423882382 init/tripe-init.in: Look for the socket in the correct place. If TRIPESOCK is a relative name then the script would look for it relative to the current directory rather than the correct TRIPEDIR directory. --- diff --git a/init/tripe-init.in b/init/tripe-init.in index 0f7e8e72..d04f42f3 100755 --- a/init/tripe-init.in +++ b/init/tripe-init.in @@ -196,7 +196,7 @@ case "$1" in echo -n "Stopping TrIPE VPN daemon:" ## If there's no socket, it must have quit (probably nonviolently). - if test ! -S $TRIPESOCK; then + if (cd $TRIPEDIR && test ! -S $TRIPESOCK); then echo " not running" ## Ask it to die nicely.