Simple startup script on Ubuntu

view story

http://serverfault.com – This should be easy, because there's a squillion questions about it, but seemingly I'm missing something. I have a script that creates some directories that I need to run at boot time. It's way too simple to bother with figuring out upstart or anything - it's not a service, it doesn't need monitoring, it just needs to run at boot time, with superuser privileges. I've tried putting the script directly in /etc/rc2.d - it ran once, at one boot, and never again. Does the system somehow remember it ran and didn't get shut down or whatever? I've also added a cron job as root and added the scri (HowTos)