Skip to content

Instantly share code, notes, and snippets.

@jumanjiman
Created November 4, 2011 22:28
Show Gist options
  • Save jumanjiman/1340655 to your computer and use it in GitHub Desktop.
Save jumanjiman/1340655 to your computer and use it in GitHub Desktop.
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