The utility systemctl is used to control the services (daemons) running on the machine.
Usage
sudo systemctl start <service_name>
sudo systemctl status <service_name>
sudo systemctl stop <service_name>
sudo systemctl enable <service_name>
sudo systemctl disable <service_name>
systemctl list-unit-files # Lists all services, enabled or not.To make your own services manageable with systemctl:
- Write a service configuration file.
- Put
*.servicefiles inside/etc/systemd/systemand then they become available for you to start, stop, enable, disable, etc.