Hi John,<br>
<br>
What happens if you try to add the daemon via the chkconfig process ?<br>
<br>
If the script is located in /etc/rc.d/init.d<br>
<br>
You can use <br>
<br>
chkconfig --add mydaemon<br>
chkconfig --level 2 5 mydaemon on<br>
<br>
(caveat: check this syntax...I'm not near an RH/fedora box)<br>
<br>
This may produce more instructive errors than a hung GUI.<br>
<br>
HTH<br>
Andrew<br>
<br>
<br><br>
<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Date: Wed, 22 Feb 2006 21:40:07 -0600<br>From: Justin Willmert &lt;
<a href="mailto:justin@jdjlab.com">justin@jdjlab.com</a>&gt;<br>Subject: Re: Confused about init scripts expectations<br>To: For users of Fedora Core releases &lt;<a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com
</a>&gt;<br>Message-ID: &lt;<a href="mailto:43FD2E97.7040806@jdjlab.com">43FD2E97.7040806@jdjlab.com</a>&gt;<br>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br><br>Mikkel L. Ellertson wrote:<br>&gt; Jon Trauntvein wrote:
<br>&gt;<br>&gt;&gt; Mikkel L. Ellertson wrote:<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;&gt; Jon Trauntvein wrote:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Greetings,<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; I am developing a daemon application to handle datalogger
<br>&gt;&gt;&gt;&gt; communications. I have developed the init script that is<br>&gt;&gt;&gt;&gt; included at the bottom of this mail based upon examples that<br>&gt;&gt;&gt;&gt; I found on the web. This script runs very<br>
&gt;&gt;&gt;&gt; well from the command line. However, when I attempt to use<br>&gt;&gt;&gt;&gt; the gnome server configuration tool to start csilgrnet, the<br>&gt;&gt;&gt;&gt; tool locks up and has to be aborted. I have searched in vain
<br>&gt;&gt;&gt;&gt; for guidelines for writing init scripts and have no idea what<br>&gt;&gt;&gt;&gt; the gui is looking for and not finding. Any assistance or<br>&gt;&gt;&gt;&gt; advise would be gratefully accepted.<br>
&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Regards,<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Jon Trauntvein<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt; For a guide to writing them, look at the documentation for the<br>
&gt;&gt;&gt; initscipts package. The file you are looking for is called<br>&gt;&gt;&gt; sysvinitfiles.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Mikkel<br>&gt;&gt;&gt;<br>&gt;&gt; I found the above referenced file and have studied it in detail.&nbsp;&nbsp;I
<br>&gt;&gt; thank you.<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; My original problem remains, however.&nbsp;&nbsp;That is, I can execute my script<br>&gt;&gt; on the command line to start and stop the daemon process.&nbsp;&nbsp;If, however,<br>&gt;&gt; I attempt to start the daemon using the services configuration GUI
<br>&gt;&gt; provided by gnome, the gui will lock up and I will have to kill it to<br>&gt;&gt; close it.&nbsp;&nbsp;I have found, through experimentation, that, if the gui is in<br>&gt;&gt; this locked state, I can actually bring it out by running the script
<br>&gt;&gt; from the command line to shut the daemon down.&nbsp;&nbsp;The gui will then pop up<br>&gt;&gt; a dialogue indicating that the daemon has been started.<br>&gt;&gt;<br>&gt;&gt; I am convinced that my script is finishing because I can see evidence
<br>&gt;&gt; that the lock file is being generated by the call to touch.&nbsp;&nbsp;Again,<br>&gt;&gt; there is absolutely no problem when this script is run from the command<br>&gt;&gt; line or when I am starting or stopping the run level.
<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; Regards,<br>&gt;&gt;<br>&gt;&gt; Jon Trauntvein<br>&gt;&gt;<br>&gt;&gt;<br>&gt; I didn't see anything wrong with it when I looked at it, but I do<br>&gt; not use the GUI, so I could be missing something. One thing you may
<br>&gt; want to check on is the permissions and ownership of the script.<br>&gt;<br>&gt; Mikkel<br>&gt;<br>To go along with the permissions thing, make sure your SELinux context<br>is correct. I find that SELinux is the cause for *many* problems if you
<br>don't remember to accommodate for it.<br><br>Justin Willmert<br><br><br><br>
</blockquote></div><br>