This commit is contained in:
2025-10-14 23:47:09 -05:00
parent f25c552f76
commit a1118ba84f

View File

@@ -63,12 +63,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
printf "%-23s%s\n" "''${active}${service}''${reset}" "running" printf "%-26s%s\n" "''${active}${service}''${reset}" "running"
else else
printf "%-23s%s\n" "''${active}${service}''${reset}" "not running" printf "%-26s%s\n" "''${active}${service}''${reset}" "not running"
fi fi
else else
printf "%-23s%s\n" "''${active}${service}''${reset}" "not found" printf "%-26s%s\n" "''${active}${service}''${reset}" "not found"
fi fi
'') '')
motd_list)} motd_list)}
@@ -80,9 +80,9 @@ in {
for service in velocity smp superflat bento; do for service in velocity smp superflat bento; do
status=$(systemctl is-active $service 2>/dev/null) status=$(systemctl is-active $service 2>/dev/null)
if [ "$status" = "active" ]; then if [ "$status" = "active" ]; then
printf "%-23s%s\n" "''${active}$service''${reset}" "running" printf "%-26s%s\n" "''${active}$service''${reset}" "running"
else else
printf "%-23s%s\n" "''${active}$service''${reset}" "not running" printf "%-26s%s\n" "''${active}$service''${reset}" "not running"
fi fi
done done
echo echo