I have this script in /etc/init.d
that I want to know if it will be run when the system reboots. Is there a way to "simulate" the conditions of a reboot to see if the script will actually be invoked (and to debug it) without having to actually reboot the system?
Please note that I'm aware that you can just run the script to debug it. My point is to troubleshoot those cases when the script runs ok when run manually but, for some reason, it is not run when the system starts/reboots (for example, some run condition with another script, things with permissions, etc).
Maybe this has to do with runlevels? As I am not that familiar with them.
Thanks!