Created
November 4, 2011 22:28
-
-
Save jumanjiman/1340655 to your computer and use it in GitHub Desktop.
kind of like chkconfig --list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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