RHCSA RHEL 8 - Start and stop services and configure services to start automatically at boot

Опубликовано: 03 Ноябрь 2024
на канале: Computers, Security & Gadgets
3,833
68

Your support on Ko-Fi is much appreciated:
👉 https://ko-fi.com/csg_yt

Join our new discord channel:
👉   / discord  

Buy CSG Merchandise:
👉 http://tee.pub/lic/csg
This video is based on RHEL 8.

Video to cover the section 'Start and stop services and configure services to start automatically at boot' for the RHCSA (Red Hat Certified System Administrator).

More information on the required learning: http://bit.ly/rhcsa8

Notes from the video:

Management of services are all controlled via the systemctl application. To start a service (note atd is used in this instance and systemctl presumes its a .service extension in this case):

systemctl start atd

To restart a service:

#systemctl restart atd

To ask a service to reload its configuration (if you have made changes to a local configuration file):

systemctl reload atd

If you are unsure if the application supports reloading, then you can ask systemctl to try reloading and if doesn’t work then restart the service:

systemctl reload-or-restart atd

To enable the service to run at startup (note this reads the configuration of the service to see which targets it should run with):

systemctl enable atd.service

To disable a service from running at boot:

systemctl enable atd.service

To check if the service is enabled to run at boot:

systemctl is-enabled atd

To check if the service is running correctly:

systemctl is-failed atd

To check the systemctl configuration of the service:

systemctl cat atd.service

To list all the dependencies of the service and confirm if they are all running:

systemctl list-dependencies atd.service

To completely disable a service (stops from starting up with the system and being started by a user):

systemctl mask atd.service

To re-enable the service:

systemctl unmask atd.service


#rhcsa #rhel #linux #redhat