c26e87dae0b787d0cb5662d7d4d3acad9d2e2274
[packages.git] / net / stunnel / files / stunnel.init
1 #!/bin/sh
2
3 case "$1" in
4     start|boot)
5         # reasons for starting
6         [ -e "/etc/stunnel/stunnel.pem" ] && {
7             chmod og-rwx /etc/stunnel/stunnel.pem
8             stunnel
9         }
10         ;;
11     stop)
12         killall stunnel
13         killall -9 stunnel
14         ;;
15 esac