like chkconfig –list
November 4, 2011
reminder to me so I can find this later
for i in /lib/systemd/system/*.service; do svc=`basename $i`; stat=`systemctl is-enabled $svc`; echo -en “$svc\t\t$stat\n”; done
Just another WordPress.com weblog
reminder to me so I can find this later
for i in /lib/systemd/system/*.service; do svc=`basename $i`; stat=`systemctl is-enabled $svc`; echo -en “$svc\t\t$stat\n”; done
November 4, 2011 at 10:46 pm
Thanks for the snippet. I put a slightly different version at http://jumanjiman.github.com/blog/2011/11/04/check-boot-time-service-status-with-systemctl/
November 4, 2011 at 10:53 pm
“systemctl list-unit-files –full” is pretty darn close to the same thing, though that subcommand appears to be missing from the manpage. I discovered it in –help.
November 5, 2011 at 2:47 am
yeah, I’m pretty sure systemctl can do most of what you need.
Josh: list-unit-files and –full both seem to be documented in the man page, at least in latest F16. There’s also list-units .
November 5, 2011 at 9:24 pm
Adam: Aha, list-unit-files is not mentioned in systemd-36, but I see systemd-37 in updates-testing, and indeed there it has a brief mention.
November 6, 2011 at 12:29 am
“chkconfig –list” just needs to be fixed. At worst by RHEL-7 … it’s kind of sad that it hasn’t been fixed already, but not unexpected I guess.
November 6, 2011 at 8:53 am
nice, for completeness i think it needs to be extended with list of services defined/customized in /etc