While this will do what you want you should actually use SysVInit stuff from Red Hat so you can control it from chkconfig and service scripts.  <br><br>If you look at existing scripts in /etc/init.d you will see that they have two specially crafted comments:<br>
# chkconfig: - 13 87<br># description: named (BIND) is a Domain Name Server (DNS)<br><br>This tells chkconfig to start it at priority 87 (which conversely will stop it at priority 13).  <br><br>To enable this service you would do chkconfig named on.<br>
<br>To verify it was to start up you would do:<br>chkconfig --list named<br><br>Dan Kulinski<br><br><br><div class="gmail_quote">On Mon, Jul 11, 2011 at 2:38 PM, Bruce Ediger <span dir="ltr">&lt;<a href="mailto:bediger@stratigery.com">bediger@stratigery.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I&#39;m a native Slackware user, and my other PC runs Arch at the moment,<br>
but I need some plain talk about Red Hat Enterprise Server runlevels.<br>
<br>
Suppose I have a server that I want started when a system boots.<br>
My understanding is this:<br>
<br>
I write a /bin/sh script that takes one command-line parameter, &quot;start&quot;<br>
or &quot;stop&quot;.  When run with &quot;start&quot;, the script has to fire up the server.<br>
When run with &quot;stop&quot;, it has to stop the server.<br>
<br>
I put the /bin/sh script in /etc/rc.d/init.d.  I make it owned by<br>
root/root, and give it 700 permissions.<br>
<br>
I create symbolic links from that /bin/sh script to<br>
/etc/rc.d/rc3.d/S99mynewscript and /etc/rc.d/rc5.d/K99mynewscript<br>
and /etc/rc.d/rc6.d/K99mynewscript<br>
<br>
Then, I reboot and verify that my server gets stopped and started<br>
correctly.<br>
<br>
Is anything wrong with the procedure above? Have I mixed Slackware and<br>
Arch style runlevels with Red Hat runlevels?  Am I even close to<br>
correct?<br>
<br>
_______________________________________________<br>
clue mailing list: <a href="mailto:clue@cluedenver.org">clue@cluedenver.org</a><br>
For information, account preferences, or to unsubscribe see:<br>
<a href="http://cluedenver.org/mailman/listinfo/clue" target="_blank">http://cluedenver.org/mailman/listinfo/clue</a><br>
</blockquote></div><br>