I have made a simple script ping01
ping -c 100000 188.8.131.52
I want to execute this script at Linux boot.
I have put this ping01 file into /etc/init.d but it doesn’t run at boot.
When I run this script from console:
actually, no script is run from /etc/init.d… at least not by simply being there. Those LSB scripts are typically invoked via their S* (for “run at startup”) and K* (for “kill on shutdown”) symlinks in /etc/init.d/rc*.d.
If you just want to invoke a script on startup, have a look at calling it from /etc/init.d/boot.local, to avoid warnings/errors for not having LSB-conforming headers in your script.
If you share some more details of what you’re trying to achieve, we might be able to assist with other side-effects to consider.