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
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/
“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.
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 .
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.
“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.
nice, for completeness i think it needs to be extended with list of services defined/customized in /etc
Fill in your details below or click an icon to log in:
You are commenting using your WordPress.com account. ( Log Out / Change )
You are commenting using your Twitter account. ( Log Out / Change )
You are commenting using your Facebook account. ( Log Out / Change )
You are commenting using your Google+ account. ( Log Out / Change )
Connecting to %s
Notify me of new comments via email.
Notify me of new posts via email.
Get every new post delivered to your Inbox.