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.

  1. View the status of all system services:
systemctl list-units --type=service
  1. Start a system service.
sudo systemctl start <service_name>
  1. Stop a system service.
sudo systemctl stop <service_name>
  1. Restarting a system service:
sudo systemctl restart <service_name>
  1. Disable a system service (will not start automatically when the system boots up):
sudo systemctl disable <service_name>
  1. Enable a system service (which will start automatically when the system boots up):
sudo systemctl enable <service_name>
  1. View detailed information about system services:
systemctl status <service_name>
  1. 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.

bannerAds