2017-01-05 54 views
1
service autofs restart 
Rather than invoking init scripts through /etc/init.d, use the service(8) 
utility, e.g. service autofs restart 
/etc/init.d/autofs: line 54: initctl: command not found 

我在网上查找过,没有看到任何可以安装initctl的yum软件包。你能帮忙吗?如何在centos-7盒子上安装initctl

回答

2

CentOS 7自带systemctl来管理服务。你不需要使用initctl。

service autofs restart应指向systemctl restart autofs

你可以用systemctl status autofs检查此服务的状态,如果不能重启后我们输出。

相关问题