More about systemd

The systemd system and service manager is responsible for controlling how services are managed on CentOS 7. Things are very different now, and the consequence of this is to appreciate that, not only have the locations of the scripts changed to /usr/lib/systemd/systemd, but the older commands are to be depreciated to such an extent that (eventually) they will be expunged.

For example, when using systemd to check the status or start or stop a service, you can use one of the following commands:

# systemctl status <service_name>.service
# systemctl stop <service_name>.service
# systemctl start <service_name>.service

Moreover, rather than using chkconfig, to enable and disable a service during the boot sequence, you should now use: ...

Get Troubleshooting CentOS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.