packages/net/stunnel/files/stunnel.init

16 lines
223 B
Bash
Executable File

#!/bin/sh
case "$1" in
start|boot)
# reasons for starting
[ -e "/etc/stunnel/stunnel.pem" ] && {
chmod og-rwx /etc/stunnel/stunnel.pem
stunnel
}
;;
stop)
killall stunnel
killall -9 stunnel
;;
esac