United States (change)
Shortcuts: Downloads Fedora Red Hat Network
Account Links: Cart Your Account Logout
Not all scripts with start/stop/status options are manageable by chkconfig. The script must adhere to the following requirements:
Below is an example for the Samba script /etc/init.d/smb:
#!/bin/sh # # chkconfig: - 91 35 # description: Starts and stops the Samba smbd and nmbd daemons \ # used to provide SMB network services.
The start/stop priority levels (91 and 35, respectively, shown above) are important for services that depend on other services. For example, it is required that portmap is started before nfs. If the script does not depend on other services, you may choose to execute it after the system is completely up and running. The easiest way is to call it from /etc/rc.d/rc.local. The command to do that is
echo /etc/init.d/yourscript >> /etc/rc.d/rc.local
Make sure that the script is executable. Issue the command:
chmod 0755 /etc/init.d/yourscript