Ubuntu Systemd: Manage Services & Startup
Ubuntu uses systemd as the system service manager. You can use the systemctl command to manage system services and startup items.
- View the status of all system services:
systemctl list-units --type=service
- Start a system service.
sudo systemctl start <service_name>
- Stop a system service.
sudo systemctl stop <service_name>
- Restarting a system service:
sudo systemctl restart <service_name>
- Disable a system service (will not start automatically when the system boots up):
sudo systemctl disable <service_name>
- Enable a system service (which will start automatically when the system boots up):
sudo systemctl enable <service_name>
- View detailed information about system services:
systemctl status <service_name>
- Check if the system services are enabled.
systemctl is-enabled <service_name>
These commands will help you manage services and start-up items in the Ubuntu system. You can use these commands as needed to start, stop, restart, disable, or enable system services.