Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
kind of like chkconfig --list
#!/bin/bash
for i in /lib/systemd/system/*.service; do
svc=$(basename $i)
systemctl is-enabled $svc &> /dev/null && status=on || status=off
printf "%-50s %9s\n" $svc $status
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment