Accepting request 114494 from security
Updated the configuration options for the initscript. (forwarded request 114466 from tokoyami) OBS-URL: https://build.opensuse.org/request/show/114494 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/autossh?expand=0&rev=2
This commit is contained in:
parent
281cf3654d
commit
4e6a2227b9
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 18 15:45:10 UTC 2012 - multyrealm@gmail.com
|
||||||
|
|
||||||
|
- updated autossh configuration options
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Apr 16 07:31:56 UTC 2012 - cfarrell@suse.com
|
Mon Apr 16 07:31:56 UTC 2012 - cfarrell@suse.com
|
||||||
|
|
||||||
|
17
autossh.conf
17
autossh.conf
@ -2,18 +2,17 @@
|
|||||||
## Description: Autossh service settings
|
## Description: Autossh service settings
|
||||||
|
|
||||||
## Type: integer
|
## Type: integer
|
||||||
## Default: 0
|
## Default: 600
|
||||||
#
|
#
|
||||||
# Time ssh must be up before it is considered a successful connection.
|
# Specifies the time to wait before the first connection test.
|
||||||
# If set to 0, then this behaviour is disabled, and as well, autossh
|
# Thereafter the general poll time is used (see AUTOSSH_POLL).
|
||||||
# will retry even on failure of first attempt to run ssh.
|
AUTOSSH_FIRST_POLL="600"
|
||||||
AUTOSSH_GATETIME="0"
|
|
||||||
|
|
||||||
## Type: list(0,1,2,3,4,5,6,7)
|
## Type: list(0,1,2,3,4,5,6,7)
|
||||||
## Default: 7
|
## Default: 6
|
||||||
#
|
#
|
||||||
# Specifies the log level, corresponding to the levels used by syslog.
|
# Specifies the log level, corresponding to the levels used by syslog.
|
||||||
AUTOSSH_LOGLEVEL="7"
|
AUTOSSH_LOGLEVEL="6"
|
||||||
|
|
||||||
## Type: integer
|
## Type: integer
|
||||||
## Default: 600
|
## Default: 600
|
||||||
@ -33,7 +32,7 @@ AUTOSSH_POLL="600"
|
|||||||
AUTOSSH_PORT="0"
|
AUTOSSH_PORT="0"
|
||||||
|
|
||||||
## Type: string
|
## Type: string
|
||||||
## Default: user@example.com -p 22 -nNT -R 30000:localhost:22 -o ExitOnForwardFailure=yes
|
## Default: user@example.com -p 22 -ynNT -R 30000:localhost:22 -o ExitOnForwardFailure=yes -o ServerAliveInterval=60 -o ServerAliveCountMax=3
|
||||||
#
|
#
|
||||||
# Options to be passed to ssh
|
# Options to be passed to ssh
|
||||||
AUTOSSH_OPTIONS="user@example.com -p 22 -nNT -R 30000:localhost:22 -o ExitOnForwardFailure=yes"
|
AUTOSSH_OPTIONS="user@example.com -p 22 -ynNT -R 30000:localhost:22 -o ExitOnForwardFailure=yes -o ServerAliveInterval=60 -o ServerAliveCountMax=3"
|
||||||
|
@ -38,15 +38,14 @@ rc_reset
|
|||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
export AUTOSSH_FIRST_POLL="60"
|
|
||||||
export AUTOSSH_PIDFILE="/var/run/autossh.pid"
|
export AUTOSSH_PIDFILE="/var/run/autossh.pid"
|
||||||
export AUTOSSH_GATETIME
|
export AUTOSSH_FIRST_POLL
|
||||||
export AUTOSSH_LOGLEVEL
|
export AUTOSSH_LOGLEVEL
|
||||||
export AUTOSSH_POLL
|
export AUTOSSH_POLL
|
||||||
export AUTOSSH_PORT
|
export AUTOSSH_PORT
|
||||||
|
|
||||||
echo -n "Starting autossh "
|
echo -n "Starting autossh "
|
||||||
/sbin/startproc $AUTOSSH_BIN $AUTOSSH_OPTIONS
|
/sbin/startproc $AUTOSSH_BIN -f $AUTOSSH_OPTIONS
|
||||||
|
|
||||||
rc_status -v
|
rc_status -v
|
||||||
;;
|
;;
|
||||||
|
@ -15,15 +15,14 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
|
||||||
|
|
||||||
Summary: Automatically restart SSH sessions and tunnels
|
Summary: Automatically restart SSH sessions and tunnels
|
||||||
|
License: BSD-3-Clause
|
||||||
|
Group: Productivity/Networking/SSH
|
||||||
|
|
||||||
Name: autossh
|
Name: autossh
|
||||||
Version: 1.4c
|
Version: 1.4c
|
||||||
Release: 1
|
Release: 0
|
||||||
License: BSD-3-Clause
|
|
||||||
Group: Productivity/Networking/SSH
|
|
||||||
Url: http://www.harding.motd.ca/autossh/
|
Url: http://www.harding.motd.ca/autossh/
|
||||||
Source: http://www.harding.motd.ca/autossh/autossh-1.4c.tgz
|
Source: http://www.harding.motd.ca/autossh/autossh-1.4c.tgz
|
||||||
Source1: autossh.init
|
Source1: autossh.init
|
||||||
|
Loading…
x
Reference in New Issue
Block a user