The translation is temporarily closed for contributions due to maintenance, please come back later.
English Sinhala
To disable starting a service at boot time, use the [command]#systemctl# command in the following form:
systemctl disable service_name.service
The next time you boot the system, the service will *not* be started. For information on how to stop the service immediately, refer to xref:Services_and_Daemons.adoc#s3-services-running-stopping[Stopping the Service].
Disabling the telnet service
In order to secure the system, users are advised to disable insecure connection protocols such as Telnet. You can make sure that the `telnet` service is disabled by running the following command as `root`:
~]# systemctl disable telnet.service
Running Services
indexterm:[systemctl,services configuration]indexterm:[services configuration,ssystemctl] The [application]*systemctl* utility also allows you to determine the status of a particular service, as well as to start, stop, or restart a service.
Do not use the service utility
Although it is still possible to use the [application]*service* utility to manage services that have init scripts installed in the `/etc/rc.d/init.d/` directory, it is advised that you use the [application]*systemctl* utility.
Checking the Service Status
To determine the status of a particular service, use the [command]#systemctl# command in the following form:
systemctl status service_name.service
This command provides detailed information on the service's status. However, if you merely need to verify that a service is running, you can use the [command]#systemctl# command in the following form instead:
systemctl is-active service_name.service
Checking the status of the httpd service
xref:Services_and_Daemons.adoc#exam-services-configuration-enabling[Enabling the httpd service] illustrated how to enable starting the `httpd` service at boot time. Imagine that the system has been restarted and you need to verify that the service is really running. You can do so by typing the following at a shell prompt:
~]$ [command]#systemctl is-active httpd.service#
active
You can also display detailed information about the service by running the following command:
~]$ systemctl status httpd.service
httpd.service - LSB: start and stop Apache HTTP Server
Loaded: loaded (/etc/rc.d/init.d/httpd)
Active: active (running) since Mon, 23 May 2011 21:38:57 +0200; 27s ago
Process: 2997 ExecStart=/etc/rc.d/init.d/httpd start (code=exited, status=0/SUCCESS)
Main PID: 3002 (httpd)
CGroup: name=systemd:/system/httpd.service
├ 3002 /usr/sbin/httpd
├ 3004 /usr/sbin/httpd
├ 3005 /usr/sbin/httpd
├ 3006 /usr/sbin/httpd
├ 3007 /usr/sbin/httpd
├ 3008 /usr/sbin/httpd
├ 3009 /usr/sbin/httpd
├ 3010 /usr/sbin/httpd
└ 3011 /usr/sbin/httpd