On Wednesday 22 February 2006 19:21, 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 Are you returning a value on exit S.A. "exit 0 or exit $RETVAL"? Could it be that the GUI is not receiving this on script exit? -- Some people have convictions. Some people have opinions I think I'll have a cheeseburger!