I hope this is the right place to ask.
First, a basic question: Where can I put an executable script so that it will run at the start of ANY runlevel?
You can add commands to /etc/rc.local and they will run at the very end of the boot process, right? What if I want to run it towards the beginning of the boot sequence? Do I have to add a "S##name" link in each rc#.d folder or is there another place it looks for these files?
Second question: How can I get Samba to startup when the system boots so that I can add Samba shares to /etc/fstab (suggested by a couple websites)?
I tried adding a script that starts Samba ('/etc/rc.d/init.d/smb start') to the rc#.d folder and giving it a name that makes it start (I think) before fstab is read and executed upon, but the services failed to start. Since Samba's not running, the commands in fstab obviously fail.
I guess my end goal is to have Samba start when the sytem boots, and to have it mount a couple shares as soon as possible. What's the best way to do this?
Sorry for the "n00bish" post, but a newbie is what I am