[http://linuxcommand.org/man_pages/chkconfig8.html chkconfig] provides a simple command-line tool for maintaining the /etc/rc[0-6].d directory hierarchy by relieving system administrators of the task of directly manipulating the numerous symbolic links in those directories.
+
+
You need to say to SME Server to add the script to each run level you have specified at the top of your init script( Default-Start: 2 3 4 5 and Default-Stop: 0 1 6 ). For Linux using rpm as centos or redhat, you can use
+
+
chkconfig YOUR_SERVICE_NAME --add
+
+
You can set the levels where the initscript has to start
+
chkconfig YOUR_SERVICE_NAME --level 2345 on
+
+
If you want to see which runlevel your script will run in