chiark / gitweb /
init/tripe-init.in: Look for the socket in the correct place.
[tripe] / init / tripe-init.in
index 5f6b2ba82068c1a702c31de389908e5dd32d5787..d04f42f3233ea81fe071a96fbfa1d7296bdcfb83 100755 (executable)
@@ -141,6 +141,7 @@ case "$1" in
       ${port+-S-p}${port} \
       ${user+-U}${user} \
       ${group+-G}${group} \
+      ${sockmode+-S-m}${sockmode} \
       ${trace+-S-T}${trace} \
       ${tunnel+-S-n}${tunnel} \
       ${miscopts}
@@ -167,7 +168,7 @@ case "$1" in
       if $i --daemon --startup; then
        echo -n "$sep$name"
       else
-        echo -n "$sep($name failed)"
+       echo -n "$sep($name failed)"
       fi
       sep=" " end="]"
     done
@@ -182,7 +183,7 @@ case "$1" in
       if $i; then
        echo -n "$sep$name"
       else
-        echo -n "$sep($name failed)"
+       echo -n "$sep($name failed)"
       fi
       sep=" " end="]"
     done
@@ -195,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.