well on fedora you need to put the script on /etc/rc.local which make it work on every boot no matter which run level the machine run, or if you want it to run only in specific init you need to put it on the appropriate /etc/rc(init number).d directory and then you need to to run the command :
Quote:
chkconfig --level therunlevelnumber thescriptname on
|
the script must contain two lines at the strart like here in the example :
Quote:
chkconfig: - 60 20
# description: NFS is a popular protocol for file sharing across TCP/IP \
# networks. This service provides NFS server functionality, \
# which is configured via the /etc/exports file.
|
the first line is the chkconfig option wich tell the boot in which order to start the script at boot in the current started init and in which order to stop him when u change init or rebooting your machine. it only have meaning if your script depends on other daemon. if it does then it should start after the daemon.
the second line is the description line which contain the description on your script.
if the script wont contain those 2 lines the script wont run on boot.