Linux 101 : Starting a service at boot time - systemctl -
Systemctl command can also help us display the settings of a service.
For example to display the settings of a service we use the below command:
The sshd service will not start automatically once we reboot the machine. For that to happen, we will need to enable the service:
For example to display the settings of a service we use the below command:
The configuration file determines how the services are started, paths, aliases,...
Example:
Starting service automatically at boot time:
When we try to run the below command to launch the sshd process for example:
Displaying the services on a system:
To list all the services including the inactive ones, we use:
Masking a service:
Masking a service prevents it from being started.
Unmasking a masked service makes it possible for the service to be started again.
Comments