systemd

Am I running systemd or good old init?

To determine whether or not you're using old school, System V init or systemd (or a mix!), do the following:

$ cat /proc/1/comm
systemd
$ ls -l /sbin/init
lrwxrwxrwx 1 root root 20 May 26 08:07 /sbin/init -> /lib/systemd/systemd

Here, the system is using systemd.

If System V was in use, "init" would be printed in the first command and the latter command would show no symlink to systemd.

List all systemd available services

$ systemctl list-unit-files

You can grep for enabled and running to narrow down your search.


~ /home 🏠 ~ talks 💬 ~ bash ~ craftsmanship ~ db ~ dongxi ~ emacs ~ escenic ~ iam ~ java ~ js ~ language ~ latex ~ ldap ~ life ~ linux ~ llm ~ mac-os-x ~ mt-foo ~ network ~ norsk ~ python ~ quotes ~ running ~ security ~ travel ~ unix ~ various ~ vcs ~ webdesign ~ windows ~ discoveries ~ cv 🧙 ~

Licensed under CC BY Creative Commons License ~ 📡 RSS feed ~ ✉ torstein.k.johansen @ gmail ~ 🐘 @skybert@hachyderm.io ~ 🎥 youtube.com/@skybert