RHEL7 환경에서 init Service 관리 명령 변경 사항
List processes
chkconfig:
# chkconfig --list
systemd:
# systemctl list-units
Enable a service
chkconfig:
# chkconfig <servicename> on
systemd:
# systemctl enable <servicename>.service
Disable a service
chkconfig:
# chkconfig <servicename> off
systemd:
# systemctl disable <servicename>.service
Start a service
chkconfig:
# service <servicename> start
systemd:
# systemctl start <servicename>.service
Stop a service
chkconfig:
# service <servicename> stop
systemd:
# systemctl stop <servicename>.service
Check the status of a service
chkconfig:
# service <servicename> status
systemd:
# systemctl status <servicename>.service