如何使用 systemctl 找出哪些命令适用于服务?
# systemctl reload nagios.service
failed to reload nagios.service: Job type reload is not applicable for unit nagios.service.
Run Code Online (Sandbox Code Playgroud)
使用 init.d,您可以在没有命令的情况下运行脚本并查看适用命令的使用信息:
# /etc/init.d/nagios
Usage: /etc/init.d/nagios {start|stop|status|restart|condrestart|try-restart|reload|force-reload|configtest}
Run Code Online (Sandbox Code Playgroud)