diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/script.sh | 2 | ||||
-rw-r--r-- | tools/stunnel.init.in | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/tools/script.sh b/tools/script.sh index d362c23..0fed870 100755 --- a/tools/script.sh +++ b/tools/script.sh @@ -2,7 +2,7 @@ REMOTE_HOST="www.mirt.net:443" echo "client script connecting $REMOTE_HOST" -/usr/local/bin/stunnel -fd 10 \ +/usr/bin/stunnel4 -fd 10 \ 11<&0 <<EOT 10<&0 0<&11 11<&- client=yes connect=$REMOTE_HOST diff --git a/tools/stunnel.init.in b/tools/stunnel.init.in index 0fd2b92..2883153 100644 --- a/tools/stunnel.init.in +++ b/tools/stunnel.init.in @@ -1,6 +1,6 @@ #! /bin/sh -e ### BEGIN INIT INFO -# Provides: stunnel +# Provides: stunnel4 # Required-Start: $local_fs $remote_fs # Required-Stop: $local_fs $remote_fs # Should-Start: $syslog @@ -21,8 +21,8 @@ . /lib/lsb/init-functions -DEFAULTPIDFILE="/var/run/stunnel.pid" -DAEMON=@bindir@/stunnel +DEFAULTPIDFILE="/var/run/stunnel4.pid" +DAEMON=@bindir@/stunnel4 NAME=stunnel DESC="TLS tunnels" OPTIONS="" @@ -48,9 +48,9 @@ get_pidfile() { startdaemons() { local res file args pidfile warn status - if ! [ -d /var/run/stunnel ]; then - rm -rf /var/run/stunnel - install -d -o stunnel -g stunnel /var/run/stunnel + if ! [ -d /var/run/stunnel4 ]; then + rm -rf /var/run/stunnel4 + install -d -o stunnel4 -g stunnel4 /var/run/stunnel4 fi if [ -n "$RLIMITS" ]; then ulimit $RLIMITS @@ -181,7 +181,7 @@ if [ "x$OPTIONS" != "x" ]; then OPTIONS="-- $OPTIONS" fi -[ -f @sysconfdir@/default/stunnel ] && . @sysconfdir@/default/stunnel +[ -f @sysconfdir@/default/stunnel4 ] && . @sysconfdir@/default/stunnel4 # If the user want to manage a single tunnel, the conf file's name # is in $2. Otherwise, respect @sysconfdir@/default/stunnel4 setting. |