Table of Contents

Start And Stop Services And Configure Services To Start Automatically At Boot

General Information

Service control and automatic starting.


General Control

Status

systemctl status httpd


Start

systemctl start httpd

Enable and Disable at Boot

Enable at boot (multi-user.target)

systemctl enable httpd


Disable at boot

systemctl disable httpd

Verification

Check if service enabled on startup

systemctl is-enabled httpd
systemctl list-unit-files --type=service | grep httpd


Check to see if httpd will start in the multi-user target

systemctl list-dependencies multi-user.target | grep httpd


View all services that will start with multi-user.target

ls /etc/systemd/system/multi-user.target.wants