banner



What Tool Should You Use To Configure Which Devices And Services Start When Windows Boots?

Information technology'south usually a good idea to configure essential network services to automatically beginning on boot. This saves you the hassle of starting them manually upon a reboot and also, the resulting havoc caused in case you lot forget to do so. Some of the crucial network services include SSH, NTP, and httpd.

You tin can confirm what is your system service managing director by running the post-obit control.

# ps --pid i        
Check Linux Service Manager
Cheque Linux Service Manager

Based on the output of the in a higher place command, you will use 1 of the post-obit commands to configure whether each service should starting time automatically on boot or non:

On systemd-based
----------- Enable Service to Starting time at Kick ----------- # systemctl enable [service]        
----------- Preclude Service from Starting at Boot ----------- # systemctl disable [service] # prevent [service] from starting at kick        
On sysvinit-based
----------- Start Service at Boot in Runlevels A and B ----------- # chkconfig --level AB [service] on        
-----------  Don't Start Service at kick in Runlevels C and D ----------- # chkconfig --level CD service off        

On a systemd system like CentOS 8, RHEL eight and Fedora xxx+, the systemctl control is used for managing services. For case, to have a view of the disabled services, run the command:

$ sudo systemctl listing-unit-files --land=disabled $ sudo chkconfig --listing     [On sysvinit-based]        

The output below prints out all the disabled services and as you can see, the httpd service is listed, implying that it is not configured to showtime on boot.

List Disabled Network Services
Listing Disabled Network Services

To enable a service to offset on kicking, utilize the syntax:

$ sudo systemctl enable service-proper name $ sudo chkconfig service_name on     [On sysvinit-based]        

For example, to enable httpd service on boot execution.

$ sudo systemctl enable httpd $ sudo chkconfig httpd on     [On sysvinit-based]        

To confirm that the httpd service has been enabled, list all the enabled services by executing the control:

$ sudo systemctl list-unit of measurement-files --state=enabled $ sudo chkconfig --list | grep 3:on     [On sysvinit-based]        
List Enabled Network Services
List Enabled Network Services

From the output above, nosotros can conspicuously run into that the httpd service now appears in the list of enabled services.

To learn more about systemctl and chkconfig commands, read these post-obit articles:

  • How to Manage 'Systemd' Services and Units Using 'Systemctl' in Linux
  • Bones chkconfig Command Examples in Linux

If You Appreciate What Nosotros Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and almost trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If y'all like what you are reading, please consider buying united states of america a coffee ( or two ) as a token of appreciation.

Support Us

We are thankful for your never catastrophe support.

What Tool Should You Use To Configure Which Devices And Services Start When Windows Boots?,

Source: https://www.tecmint.com/auto-start-services-on-linux-boot/

Posted by: calderonades1986.blogspot.com

0 Response to "What Tool Should You Use To Configure Which Devices And Services Start When Windows Boots?"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel