Saturday, September 13, 2014

Systemd: RHEL 7 / Centos 7

In RHEL 7 / Centos 7 new release, there are now systemd commands you can start using to start, restart and stop various services. They still have the ‘service’ command included for backwards compatibility.

Here are some examples:

Stop service:
Start service:
Restart service (stops/starts):
Reload service (reloads config file):
List status of service:
What about chkconfig? That changed too? Yes, now you want to use systemctl for the chkconfig commands also..
chkconfig service on:
chkconfig service off:
chkconfig service (is it set up to start?)
chkconfig –list (shows what is and isn’t enabled)
1
systemctl list-unit-files --type=service

No comments:

Post a Comment