chiark / gitweb /
init/tripe-init.in: Look for the socket in the correct place.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 25 Apr 2012 20:09:38 +0000 (21:09 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 25 Apr 2012 20:09:38 +0000 (21:09 +0100)
If TRIPESOCK is a relative name then the script would look for it
relative to the current directory rather than the correct TRIPEDIR
directory.

init/tripe-init.in

index 0f7e8e7..d04f42f 100755 (executable)
@@ -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.