If TRIPESOCK is a relative name then the script would look for it
relative to the current directory rather than the correct TRIPEDIR
directory.
echo -n "Stopping TrIPE VPN daemon:"
## If there's no socket, it must have quit (probably nonviolently).
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.
echo " not running"
## Ask it to die nicely.