[ -f @initconfig@ ] && . @initconfig@
: ${prefix=@prefix@} ${exec_prefix=@exec_prefix@}
: ${bindir=@bindir@} ${sbindir=@sbindir@}
-: ${TRIPEDIR=@configdir@} ${tripesock=@socketdir@/tripesock}
+: ${TRIPEDIR=@configdir@} ${TRIPESOCK=@socketdir@/tripesock}
: ${pidfile=@pidfile@}
: ${tripe=$sbindir/tripe} ${tripectl=$bindir/tripectl}
PATH=/usr/bin:/usr/sbin:/bin:/sbin:$bindir
-export PATH TRIPEDIR
+export PATH TRIPEDIR TRIPESOCK
# --- Give up if there's no key ---
;;
stop)
echo -n "Stopping TrIPE VPN daemon:"
- if test ! -S $tripesock; then
+ if test ! -S $TRIPESOCK; then
echo " not running"
elif $tripectl quit >/dev/null 2>&1; then
echo " done"
elif test ! -f $pidfile; then
echo " stale socket found: removing"
- rm -f $tripesock
+ rm -f $TRIPESOCK
elif kill `cat $pidfile`; then
echo " done (killed violently)"
else