Add an init script?
Here's an easy one: what's the right way to add an init script under /etc/rc.d/init.d (Fedora)? I assumed Fedora just enumerated and ran every file in that directory at bootup but it does not appear to work that way. I got my scripts to run by hijacking the bluetooth one to call them but obviously this isn't the Right Way.
|
If the script is in /etc/init.d and it's header follows a LSB convention for this, it can be set to start at boot time at the pre-defined run-levels, by running "chkconfig name-of-init-script on" (or off). Check chkconfig man page for other options.
chkconfig will read the following header of init script to figure out what run-levels it should run and what are the dependencies for other services. For example, the festival init script has the following header: Code:
### BEGIN INIT INFO |
All times are GMT -5. The time now is 04:26 PM. |