diff --git a/ur/fortinet.vpn.sh b/ur/fortinet.vpn.sh index f31d1b5..a4743af 100755 --- a/ur/fortinet.vpn.sh +++ b/ur/fortinet.vpn.sh @@ -214,7 +214,7 @@ main() { # {{{ debug_message "-- Connect VPN BEGIN" ### If forticlient.service unit is not started {{{ systemd_forticlient_status=$(systemctl show --property ActiveState --value forticlient.service || error_message "Error while requesting forticlient.service unit status." 21) - if [ "${systemd_forticlient_status}" = "failed" ]; then + if [ "${systemd_forticlient_status}" = "inactive" ]; then debug_message "| Try to start forticlient.service unit." sudo systemctl restart forticlient.service \ || error_message "Error while (re)starting forticlient.service unit" 22