banner



How To Resart Rygel As A Service

A service is a groundwork procedure that automatically runs when you lot boot upward your system. For regular users and particularly system administrators, restarting a service is a mutual system administration chore that you oftentimes accept to perform while configuring system settings or installing a new application.

In this article, nosotros will learn near how to restart a service through systemctl on Linux. Systemctl is basically a command-line organization application that is used to manage the organisation services and allows to start, finish, restart, enable, disable, and view the status of the services.

We take used Debian 10 for running the commands and procedures mentioned in this article, just the same commands will piece of work on other Distributions like Ubuntu, CentOS or Fedora too.

Restarting a Service with Systemctl

To restart a service, command-line Final is used. In society to open up the Concluding, get to the Activities tab in the top left corner of your desktop. Then from the search menu that appears, search for the Concluding application and launch it.

To list all enable services on your organisation, run the following command in Terminal:

$ systemctl list-unit-files | grep enabled

List of services

From the above list, you tin can find out the exact proper name of the service you desire to restart using the systemctl command.

In order to restart a running service(Stop so start), use the following control syntax in Terminal:

$ sudo systemctl restart [service-name]

For instance, to restart the xrdp service, replace the "service-proper noun" parameter with the verbal proper noun of the service.

Restart a service using systemctl

Manage Services with Systemd

Forth with service restart, you can also manage service using systemctl command such every bit outset, stop, enable, disable, and viewing the status of service.

In lodge to view the current status of the service whether information technology is running or not, apply the following command syntax in Terminal:

$ systemctl status [service-name]

In gild to start a service, apply the following syntax:

$ systemctl start [service-name]

In order to stop a running service, utilise the post-obit syntax:

$ systemctl stop [service-proper name]

In club to enable a service to automatically start on kick, use the post-obit syntax:

$ systemctl enable [service-name]

In lodge to disable service to not automatically start on boot, use the following syntax:

$ systemctl disable [service-name]

In gild to reload a service, use the following syntax:

$ systemctl reload [service-name]

In guild to reload-or-restart a service (It reloads a service and in example, if reload is not bachelor then information technology restarts the service.)

$ sudo systemctl reload-or-restart [service-name]

In order to check if service is active:

$ sudo systemctl is-active [service-proper name]

In club to check if service is enabled to automatically first on a system boot:

$ sudo systemctl is-enabled [service-proper name]

In this commodity, we accept learned how to restart a service through the systemctl command. We also learned other common apply of systemctl command for managing the services.

Source: https://vitux.com/how-to-restart-a-service-through-systemctl-on-linux/

Posted by: yonyoublicut.blogspot.com

0 Response to "How To Resart Rygel As A Service"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel