Systemctl commands

At my daily work as a sysadmin I already have some hosts which are running on debian 8 (jessie). If they are newly installed, a lot of things have changed. Since the beginning of debian 8, they should all started via systemd. In this blog post I write some commands to make your live with systemd easier.

Get list of services

If you want to see which service is available for systemd, you just can type:

systemctl list-unit-files --type=service

enable a service

From time to time you have a new service which can not be started via systemd, because it is not really enabled. In that case, I first check if that service is available, enable and start it.

systemctl list-unit-files --type=service |grep SERVICE
systemctl enable SERVICE_NAME
systemctl start SERVICE_NAME
comments powered by Disqus