Skip to content

Instantly share code, notes, and snippets.

@sq3
Last active Feb 26, 2018
Embed
What would you like to do?
systemd cheat sheet

systemd cheat sheet

systemctl

Controll a Service

Show service status

$ systemctl status httpd.service

Start / Stop a service

$ systemctl start httpd.service $ systemctl stop httpd.service

Enable a service for starting on boot

$ systemctl enable httpd.service

Disable a service for starting on boot

$ systemctl disable httpd.service

List all running units

$ systemctl status

List all available units

$ systemctl list-units

List all failed units

$ systemctl list-units --state=failed

List all enabled units

$ systemctl list-unit-files --state=enable

Show unitfile

$ systemctl cat httpd.service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment