今、Red Hat Enterprise Linux Server release 7.3をvirtual box上にインストールし、初期設定を行なっています。ひとます、ntpdを設定しようと思い、ntpをyumでインストールし、"chkconfig ntp on"コマンドを実行しました。
そこで、"chkconig --list"と"systemctl list-unit-files --type service"でデーモンのリストを表示して見ました。そうすると、systemctlの方にはntpが存在するのですが、chkconfigでは表示されません。
以下のリンク先を参照する限り、上記2つのコマンドは同じ結果になると思ったのですが。。。。
https://access.redhat.com/documentation/ja-JP/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/sect-Managing_Services_with_systemd-Services.html
どなたか、何か勘違いしているところがありましたら、ご指摘いただけないでしょうか。
chkconfig結果
[root@rhel7 /]# chkconfig --list Note: This output shows SysV services only and does not include native systemd services. SysV configuration data might be overridden by native systemd configuration. If you want to list systemd services use 'systemctl list-unit-files'. To see services enabled on particular target use 'systemctl list-dependencies [target]'. jexec 0:on 1:on 2:on 3:on 4:on 5:on 6:on netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off network 0:off 1:off 2:on 3:on 4:on 5:on 6:off rhnsd 0:off 1:off 2:on 3:on 4:on 5:on 6:off [root@rhel7 /]#
systemctl結果
[root@rhel7 /]# systemctl list-unit-files --type service | grep ntp ntpd.service enabled ntpdate.service disabled [root@rhel7 /]#
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/04/23 01:18