4 # suitable for direct use in most SysV-style inits
7 exec_prefix
=@exec_prefix@
13 [ -f
/etc
/tripe.conf
] && .
/etc
/tripe.conf
14 : ${TRIPEDIR=/var/lib/tripe}
17 : ${tripe=$sbindir/tripe}
18 : ${tripectl=$bindir/tripectl}
19 PATH
=/usr
/bin
:/usr
/sbin
:/bin
:/sbin
:$bindir
24 echo -n
"Starting TrIPE VPN daemon:"
25 if $tripectl help >/dev
/null
2>/dev
/null
; then
26 echo " already running"
29 $tripectl -D
-f
${tripelog-tripe.log} -p
$tripe -s \
33 ${group+-S-g}${group} \
34 ${trace+-S-T}${trace} \
36 for i
in 1 2 3 4 give-up
; do
37 $tripectl help >/dev
/null
2>/dev
/null
&& break
40 if [ $i = give-up
]; then
41 echo " wouldn't start"
45 for i
in $TRIPEDIR/peers
/*; do
53 echo -n
"Stopping TrIPE VPN daemon:"
57 restart | force-reload
)
62 echo >&2 "usage: $0 start|stop|restart|force-reload"