diff --git a/motd.sh b/motd.sh index 732d1e0..4463238 100755 --- a/motd.sh +++ b/motd.sh @@ -50,8 +50,10 @@ for i in "${!services[@]}"; do # color green if service is active, else red if [[ "${service_status[$i]}" == "active" ]]; then out+=" - ${services[$i]},${green}${service_status[$i]}${undim}\n" - else + elif [[ "${service_status[$i]}" != "inactive" ]] || [[ "$(systemctl is-enabled ${services[$i]})" == "enabled" ]]; then out+=" ${redbg}/!\\\\${undim} - ${services[$i]},${red}${service_status[$i]}${undim}\n" + else + out+=" - ${services[$i]},${dim}${service_status[$i]} (disabled)${undim}\n" fi done