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

Upcoming Events (Local Time)

There are no events.

RHCSA7: Task of the day

Allowed time: 5 minutes.
Set up time services pointing to default time servers.

RHCE7: Task of the day

Allowed time: 8 minutes.
Set up an iScsi target based on a fileio backstore of 100MB called /opt/shareddata with CHAP authentication (username=usr/password=pwd), xfs filesystem and standard firewall configuration.

Follow me on Twitter

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 ...