autossh: return from instance function, not exit the script
In case of disabled configuration instances in the bottom of configuration file, enabled instances won't be started as the first disabled instance would return in init script termination. Signed-off-by: ValdikSS ValdikSS <iam@valdikss.org.ru>
This commit is contained in:
parent
76ba437114
commit
02e95fdef9
|
@ -14,7 +14,7 @@ start_instance() {
|
|||
config_get poll "$section" 'poll'
|
||||
config_get_bool enabled "$section" 'enabled' '1'
|
||||
|
||||
[ "$enabled" = 1 ] || exit 0
|
||||
[ "$enabled" = 1 ] || return 1
|
||||
|
||||
procd_open_instance
|
||||
procd_set_param command /usr/sbin/autossh -M ${monitorport:-20000} ${ssh}
|
||||
|
|
Loading…
Reference in New Issue