If you just have to run stuff once each startup then place your script in /etc/event.d If your script stays in ram monitoring things then, write a startup script in /etc/event.d but put the main script in /etc/init.d As epitaph says there are lots of examples in both directories for you to learn from.