RHEL 7 little but valuable improvement.

Share this link

In RHEL 6, service management was sometimes slightly painful.
Each time you wanted to start or enable a service, you had to perfectly remember its name.
For example, when you wanted to set up a ntp client, you had to install the NTP package: # yum install ntp
Then, you had to enable the service: # chkconfig ntpd on
Finally, you had to start the service: # service ntpd start
As the package name was different from the service name, you had to remember both names and sometimes use commands like: # chkconfig | grep ntp

With RHEL 7, Systemd involves new commands but you get exactly the same steps (by the way, package name and service name are still different in this case):
You have to install the NTP package: # yum install ntp
Then, you have to enable the service: # systemctl enable ntpd
Finally, you have to start the service: # systemctl start ntpd
The improvement appears when using the systemctl command: you get bash completion!
According to Ben Breard, you get this feature by default except in the minimal installation configuration.

When not sure about the service name, type the beginning of its name and press the tab key!
Start by getting the service status: # systemctl status ntpd
Then start/stop/enable/disable it according to your needs.

Posted in RHEL7

Leave a Reply

Be the First to Comment!

Notify of
wpDiscuz

RHCSA7: Task of the day

Allowed time: 8 minutes.
Find all files bigger than 100MB and write their names into the /root/results.txt file.

RHCE7: Task of the day

Allowed time: 10 minutes.
Set up a httpd virtual server called "dummy" with DocumentRoot assigned to /opt.

Poll for favorite RHEL 7 book

What is your favorite RHEL 7 book to prepare RHCSA & RHCE exams?

View Results

Loading ... Loading ...

Poll for most difficult RHCSA 7 topic

What do you think is the most difficult RHCSA 7 topic?

View Results

Loading ... Loading ...

Poll for most difficult RHCE 7 topic

What do you think is the most difficult RHCE 7 topic?

View Results

Loading ... Loading ...

Recent Comments