Startup services in Ubuntu

Service in operating systems Unix is a program that runs in the background and has no Windows or other means of communication with the user. In this article we will not consider features of the structure and running of the services, anyone interested can look at Wikipedia.

Startup services in Ubuntu is managed by the systemd init system. Until recently, Ubuntu has used UpStart, but she was unable to resist the onslaught of systemd.

A list of all services and their status can be viewed using the utility systemctlfor this command in the terminal (Ctrl+Alt+T):

systemctl list-units --type=service

And to see a list of services that are currently running, type this line in terminal:

systemctl list-units --type=service --state=running

Similarly, you can view the services that are already added to the startup:

systemctl list-unit-files --type=service --state=enabled

Add service to startup using options of a utility enable:

 sudo systemctl enable service name

Remove service from startup, specifying the option disable:

sudo systemctl disable service name

As actions are performed as root, the system will ask for the password. For more information about restart, see startup in Linux. It looks at the startup services in Ubuntu. However, all these commands will be relevant to other distributions using Systemd init system.

Source: losst.ru

(Visited 13 times, 1 visits today)