Re: Confused about init scripts expectations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jon Trauntvein wrote:
> Mikkel L. Ellertson wrote:
> 
>> Jon Trauntvein wrote:
>>
>>> Greetings,
>>>
>>> I am developing a daemon application to handle datalogger 
>>> communications. I have developed the init script that is
>>> included at the bottom of this mail based upon examples that
>>> I found on the web. This script runs very
>>> well from the command line. However, when I attempt to use
>>> the gnome server configuration tool to start csilgrnet, the
>>> tool locks up and has to be aborted. I have searched in vain
>>> for guidelines for writing init scripts and have no idea what
>>> the gui is looking for and not finding. Any assistance or
>>> advise would be gratefully accepted.
>>>
>>> Regards,
>>>
>>> Jon Trauntvein
>>>
>> For a guide to writing them, look at the documentation for the
>> initscipts package. The file you are looking for is called
>> sysvinitfiles.
>>
>> Mikkel
> 
> 
> I found the above referenced file and have studied it in detail.  I
> thank you.
> 
> 
> My original problem remains, however.  That is, I can execute my script
> on the command line to start and stop the daemon process.  If, however,
> I attempt to start the daemon using the services configuration GUI
> provided by gnome, the gui will lock up and I will have to kill it to
> close it.  I have found, through experimentation, that, if the gui is in
> this locked state, I can actually bring it out by running the script
> from the command line to shut the daemon down.  The gui will then pop up
> a dialogue indicating that the daemon has been started.
> 
> I am convinced that my script is finishing because I can see evidence
> that the lock file is being generated by the call to touch.  Again,
> there is absolutely no problem when this script is run from the command
> line or when I am starting or stopping the run level.
> 
> 
> Regards,
> 
> Jon Trauntvein
> 
I didn't see anything wrong with it when I looked at it, but I do
not use the GUI, so I could be missing something. One thing you may
want to check on is the permissions and ownership of the script.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux