here are examples of the systemctl version of a few common chkconfig and service commands.
1. to list processes
# chkconfig --list
# systemctl list-units
2. to enable a service
# chkconfig (servicename) on
# systemctl enable (servicename).service
3. to disable a service
# chkconfig (servicename) off
# systemctl disable(servicename).service
4. to start a service
# service (servicename) start
# systemctl start (servicename).service
5. to stop a service
# service (servicename) stop
# systemctl stop (servicename).service
6. to see the status of a service
# service (servicename) status
# systemctl status (servicename).service
or
# systemctl is-active (servicename).service
source:
http://fedoraproject.org/wiki/SysVinit_to_Systemd_Cheatsheet
source:
http://fedoraproject.org/wiki/SysVinit_to_Systemd_Cheatsheet
Comments
Post a Comment