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>
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}