首先,这是一个带有服务器故障的双重帖子,请告知什么是此类问题的更好站点。
这是我第一次接触暴发户。等待网络启动时,我无法启动以下脚本。如果使用标准,它将起作用
start on runlevel [2345]
stop on runlevel [!2345]
我也尝试过各种组合
start on filesystem and net-device-up IFACE=eth0
start on filesystem and net-device-up IFACE!=lo
任何建议将不胜感激
description "test for on network start"
start on (started network-interface
or started network-manager
or started networking)
stop on (stopping network-interface
or stopping network-manager
or stopping networking)
script
touch /home/ec2-user/myFile.txt
end script