replaces init
systemd:
+ /usr/lib/systemd/system/ + /etc/systemd/system/
systemd init system (doesn’t have runlevels)
/lib/systemd/system/<nginx.service>
/etc/systemd/system/multi-user.target.wants/<nginx.service>
/etc/inittab not on systemd
List installed
systemctl list-unit-files
systemctl status
running
systemctl list-units
systemctl daemon-reload
see if thing failed:
systemctl --failed
see logs: journalctl (part of systemd?)
journalctl
systemctl status <unit>
systemctl help <help>
systemctl is-enabled <unit>
systemctl start <unit>
systemctl start <unit>
systemctl stop <unit>
systemctl restart <unit>
systemctl reload <unit>
Starts at boot, or starts now.
systemctl enable <unit>
systemctl enable <unit> --now
systemctl disable <unit>
systemctl reenable <unit>
systemctl mask <unit>
systemctl unmask <unit>
systemctl edit <unit>
systemctl revert <unit>
Alternative to GRUB which supports UEFI.
systemd-gpt-auto-generator
systemd.automount
Requires GPT.
If using systemd, don’t need to manually create swap for partition in /etc/fstab, systemd will find it by going through partitions
Doesn’t replace /etc/fstab, but means don’t need to include drives on GPT there, or swap.
Can manage physical security tokens and passwords for LUKS2.
Allows the creation of portable users.