4 printf "Starting stunnel: "
5 start-stop-daemon
-S -q -p /var
/run
/stunnel.pid
--exec /usr
/bin
/stunnel
6 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
10 printf "Stopping stunnel: "
11 start-stop-daemon
-K -q -p /var
/run
/stunnel.pid
12 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
31 echo "Usage: $0 {start|stop|restart}"