运行关机 shutdown 命令时。能不能自动关闭某些服务
資深大佬 : zunxiongchen 3
A 自定义了一个脚本在 /etc/init.d/test,在 A 运行 service test stop,就会 ssh 到 B 机器,shutdown 关机 B 机器。
有没有可能在 A 运行 shutdown 时自关也去跑 service test stop, 从而关闭 A 就是关闭 A+B
有没有可能在 A 运行 shutdown 时自关也去跑 service test stop, 从而关闭 A 就是关闭 A+B
大佬有話說 (6)