debian systemd usage sample

I stole info from https://wiki.debian.org/systemd

Show system status:
$ systemctl status

List failed units:
$ systemctl –failed
# systemctl reset-failed

List installed unit files:
$ systemctl list-unit-files

List all running services:
$ systemctl

Activates the service “example1” immediately:
# systemctl start example1

Deactivates the service “example1” immediately:
# systemctl stop example1

Restarts the service “example1” immediately:
# systemctl restart example1

Shows status of the service “example1”:
# systemctl status example1

Enables “example1” to be started on bootup:
# systemctl enable example1

Disables “example1” to not start during bootup:
# systemctl disable example1

This entry was posted in Linux/Unix. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *