fi
## Start the server, passing lots of arguments.
+ logopt=
+ case ${syslogp-nil} in nil) ;; *) logopt="$logopt -l" ;; esac
+ case ${logfile+t},${syslogp-nil} in
+ t,*) logopt="$logopt -f$logfile" ;;
+ ,nil) logopt="$logopt -f@logfile@" ;;
+ esac
$tripectl -D -s -p$tripe \
- -f${logfile-@logfile@} \
-P$pidfile \
- ${keytag+-S-t}$keytag \
- ${addr+-S-b}$addr \
- ${port+-S-p}${port} \
- ${user+-U}${user} \
- ${group+-G}${group} \
- ${trace+-S-T}${trace} \
- ${tunnel+-S-n}${tunnel} \
- ${miscopts}
+ $logopt \
+ ${keytag+-S-t$keytag} \
+ ${addr+-S-b$addr} ${port+-S-p$port} \
+ ${user+-U$user} ${group+-G$group} \
+ ${sockmode+-S-m$sockmode} \
+ ${trace+-S-T$trace} \
+ ${tunnel+-S-n$tunnel} \
+ $miscopts
## Wait for the server to start up. This doesn't usually take long.
for i in 1 2 3 4 give-up; do
if $i --daemon --startup; then
echo -n "$sep$name"
else
- echo -n "$sep($name failed)"
+ echo -n "$sep($name failed)"
fi
sep=" " end="]"
done
if $i; then
echo -n "$sep$name"
else
- echo -n "$sep($name failed)"
+ echo -n "$sep($name failed)"
fi
sep=" " end="]"
done
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.