Commit d98be881 authored by Gustavo Zacarias's avatar Gustavo Zacarias Committed by Peter Korsgaard
Browse files

stunnel: adjust initscript



Use proper status messages, make spacing standard instead of a mix of
spacing/tabbing, drop boringly obvious comment from the header.

Signed-off-by: default avatarGustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent 48a9e431
Loading
Loading
Loading
Loading
+18 −19
Original line number Diff line number Diff line
#!/bin/sh
#
# Starts stunnel
#

start() {
  echo -n "Starting stunnel: "
  start-stop-daemon -S -q -p /var/run/stunnel.pid --exec /usr/bin/stunnel
	echo "OK"
  [ $? = 0 ] && echo "OK" || echo "FAIL"
}

stop() {
  echo -n "Stopping stunnel: "
  start-stop-daemon -K -q -p /var/run/stunnel.pid
	echo "OK"
  [ $? = 0 ] && echo "OK" || echo "FAIL"
}

restart() {
  stop
  start