I find the concept of runlevels very confusing. Currently, I'm trying to run a script only at start up. But configuring as shown below leads to it working also at halt time.
I'm programming a daemon this way:
update.rc-d script.sh defaults 100
Also I have tried
update-rc-d script.sh start 100
But that does not work either.