gn o/ <3
This commit is contained in:
@@ -63,12 +63,12 @@ in {
|
||||
if systemctl list-units --type=service --all | grep -q "${service}"; then
|
||||
status=$(systemctl is-active ${service} 2>/dev/null)
|
||||
if [ "$status" = "active" ]; then
|
||||
printf "%-23s%s\n" "''${active}${service}''${reset}" "running"
|
||||
printf "%-26s%s\n" "''${active}${service}''${reset}" "running"
|
||||
else
|
||||
printf "%-23s%s\n" "''${active}${service}''${reset}" "not running"
|
||||
printf "%-26s%s\n" "''${active}${service}''${reset}" "not running"
|
||||
fi
|
||||
else
|
||||
printf "%-23s%s\n" "''${active}${service}''${reset}" "not found"
|
||||
printf "%-26s%s\n" "''${active}${service}''${reset}" "not found"
|
||||
fi
|
||||
'')
|
||||
motd_list)}
|
||||
@@ -80,9 +80,9 @@ in {
|
||||
for service in velocity smp superflat bento; do
|
||||
status=$(systemctl is-active $service 2>/dev/null)
|
||||
if [ "$status" = "active" ]; then
|
||||
printf "%-23s%s\n" "''${active}$service''${reset}" "running"
|
||||
printf "%-26s%s\n" "''${active}$service''${reset}" "running"
|
||||
else
|
||||
printf "%-23s%s\n" "''${active}$service''${reset}" "not running"
|
||||
printf "%-26s%s\n" "''${active}$service''${reset}" "not running"
|
||||
fi
|
||||
done
|
||||
echo
|
||||
|
||||
Reference in New Issue
Block a user