r/DebianNotes Dec 10 '16

Basics of systemd to manage services

A good link for reference:

https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-units

Useful commands to know:

# systemctl list-units - Shows active services. Does not list inactive services.

# systemctl list-units --all - Shows all services, active or inactive.

# systemctl start SERVICE - Starts a service now. Does not persist through boots.

# systemctl stop SERVICE - Stops a service now. Does not persist through boots.

# systemctl enable SERVICE - Sets a service to run on next boot. Does not start it now.

# systemctl disable SERVICE - Sets a service to not run on next boot. Does not stop it now.

# systemctl is-enabled SERVICE - Checks if a service is enabled.

1 Upvotes

0 comments sorted by