Systemd tip.

Share this link

With systemd, services can be socket-activated, D-Bus-activated or manually started.
This means you have to be very cautious when stopping a service and take extra precaution if you don’t want it to restart!
Previously with RHEL 6, to stop the NetworkManager service for example, you had to type:

# service NetworkManager stop; chkconfig NetworkManager off

In the new RHEL 7 world, you will have to type:

# systemctl disable NetworkManager; systemctl stop NetworkManager

It’s disable then stop and not the other way around!
If you don’t follow this rule, you will be sometimes surprised to see your service still running: it will have been restarted by another process!
This is a true story that happened with the NetworkManager service.
Be assured this will happen again if you are not careful!

Posted in RHEL7

Leave a Reply

Please Login to comment
  Subscribe  
Notify of

Upcoming Events (Local Time)

  1. Feb
    1
    Fri

    1. 8:30 am - View Details
      CentOS: Dojo, Brussels, Belgium.

RHCSA7: Task of the day

Allowed time: 5 minutes.
Create a user called tom. Create a directory named /private. Use an acl to only allow access (rwx) to tom to the private directory.

RHCE7: Task of the day

Allowed time: 15 minutes.
Configure a Samba server called MYSERVER, belonging to the MYGROUP group, sharing the /shared directory with the name "shared".

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