Comparion of service and chkconfig commands against systemctl utility

A short article providing a comparison between the service and systemctl utilities, and between the chkconfig and systemctl utilities

service vs systemctl

Actionservicesystemctl
Start a service service name start systemctl start name.service
Stop a service service name stop systemctl stop name.service
Restart a service service name restart systemctl restart name.service
Restart a service (only if already running) service name condrestart systemctl try-restart name.service
Reload configuration service name reload systemctl reload name.service
Check if a service is running service name status systemctl status name.service
systemctl is-active name.service
Display the status of all services service --status-all systemctl list-units --type service --all

chkconfig vs systemctl

Actionchkconfigsystemctl
Enable a service chkconfig name on systemctl enable name.service
Disable a service chkconfig name off systemctl disable name.service
Check if a service is enabled chkconfig --list name systemctl status name.service
systemctl is-enabled name.service
List all services and checks if they are enabled chkconfig --list systemctl list-unit-files --type service
List services that are ordered to start before the specified unit chkconfig --list systemctl list-dependencies --before
List services that are ordered to start after the specified unit chkconfig --list systemctl list-dependencies --before