RHEL6 service  >  RHEL7 systemctl

RHEL6 의 service 명령어가 RHEL7 에서는 systemctl 명령어로 대체됨
#
$ systemctl status [service_name]
#
$ systemctl list-units --type service
# ()
$ systemctl --type service
#
$ systemctl start [service_name]
#
$ systemctl stop [service_name]
#
$ systemctl kill -s 9 [service_name]
#
$ systemctl restart [service_name]
#
$ systemctl reload [service_name]


RHEL6 chkconfig  >  RHEL7 systemctl

RHEL6의 chkconfig 명령어가 RHEL7 에서는 systemctl 명령어로 대체됨
#
$ systemctl list-unit-files --type service
# (chkconfig --addd)
$ systemctl daemon-reload
# /etc/systemd/system service systemd
#
$ systemctl is-enabled [service_name]
# enable
$ systemctl enable [service_name]
# disable
$ systemctl disable [service_name]


반응형