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包。你能帮帮我吗。
发布于 2017-01-10 14:08:15
CentOS 7附带了systemctl来管理服务。你不用用initctl。
service autofs restart应该指向systemctl restart autofs
您可以使用systemctl status autofs检查此服务的状态,如果无法重新启动,可以将输出发送给我们。
https://stackoverflow.com/questions/41487913
复制相似问题