]>
git.ipfire.org Git - ipfire-2.x.git/blob - src/initscripts/init.d/sslh
2 # Begin $rc_base/init.d/sslh
4 # Based on sysklogd script from LFS-3.1 and earlier.
5 # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
12 boot_mesg
"Starting SSLH Deamon..."
14 LOCAL_IP_ADDRESS
="$(</var/ipfire/red/local-ipaddress)"
15 if [ -z "${LOCAL_IP_ADDRESS}" ]; then
17 boot_mesg
-n "FAILURE:\n\nCould not determine" ${FAILURE}
18 boot_mesg
-n " your external IP address."
19 boot_mesg
"" ${NORMAL}
23 loadproc
/usr
/sbin
/sslh
-u nobody \
24 -p "${LOCAL_IP_ADDRESS}:443" -s localhost
:222 -l localhost
:444
29 boot_mesg
"Stopping SSLH Deamon..."
30 killproc
/usr
/sbin
/sslh
41 statusproc
/usr
/sbin
/sslh
45 echo "Usage: $0 {start|stop|restart|status}"
50 # End $rc_base/init.d/sslh