diff --git a/net/autossh/files/autossh.init b/net/autossh/files/autossh.init index 80ad5ef47b..431b3697f0 100644 --- a/net/autossh/files/autossh.init +++ b/net/autossh/files/autossh.init @@ -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}