Tuesday, December 16, 2014

systemd Run In

Well, it finally happened. I ran into systemd. I wasn't looking forward to this experience but it was less frustrating than it could have been. I have been training a new employee who is not experience with Linux. I have been taking them through the initial phases of using Linux by taking them through RHEL.

My first mistake was not understanding the differences between RHEL 6 and RHEL 7. Turns out that RHEL 7 contains the infamous systemd. I had not thought about this when having the new employee follow tutorials from the Internet. Oops...

Issue:

The following command is to enable httpd to start automatically:
sudo systemctl enable httpd.service

The adorable part of this command is that it is specific to operating systems using systemd, in our case RHEL 7. I had not seen this while suggesting tutorials.

Fix:

chkconfig httpd on

This command is the acceptable command for a RHEL 6 system to enable httpd automatically.