This commit is contained in:
2025-10-14 21:38:46 -05:00
parent a92f00a2ac
commit 1e8b341977

View File

@@ -64,12 +64,12 @@ in {
if systemctl list-units --type=service --all | grep -q "^''${service}"; then if systemctl list-units --type=service --all | grep -q "^''${service}"; then
status=$(systemctl is-active ''${service} 2>/dev/null) status=$(systemctl is-active ''${service} 2>/dev/null)
if [ "''${status}" = "active" ]; then if [ "''${status}" = "active" ]; then
echo -e " ''${BLUE}''${service}''${RESET} - running" echo -e " ''${BLUE}${service}''${RESET} - running"
else else
echo -e " ''${RED}''${service}''${RESET} - not running" echo -e " ''${RED}${service}''${RESET} - not running"
fi fi
else else
echo -e " ''${RED}''${service}''${RESET} - not found" echo -e " ''${RED}${service}''${RESET} - not found"
fi fi
'') '')
motdServices)} motdServices)}