From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075325006802.tru64-unix-managers.marc@archive.invalid> From: Jesus Rodriguez Castro Date: Tue, 28 Nov 1995 09:52:10 +0000 To: tru64-unix-managers Subject: SUMMARY: What's wrong with this daemon X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075325006802 Hi all, Some days ago I asked you about a daemon I wasn't able to execute from a script. When it was executed from the script and I closed the window, the daemon went down. Many of you asked me and I got a solution thanks to all your ideas: At last, I had to do the following: I my script I wrote: nohup /dev/null 2>&1 & sleep 15 The first line executes the daemon using nohup and preventing the daemon from accessing the terminal. After doing this, my script worked on and off, so I had to send a second mail, what was ansered by Andrew Osterman, who had had the same problem before. His answer: ----------------------------------- Does the daemon have enough time to start up before you exit the window ? Try adding a sleep 10 on the line after the nohup line. I had a simmilar problem before trying to get SYBASE started at boot time and had to get the script to sleep 15 seconds to allow the SYBASE server to complete startup before the system startup processes completed. ----------------------------------- Thanks to everybody. ,,, (o o) ====oOO--( )--OOo======================================================== JESUS RODRIGUEZ CASTRO Applications Systems Manager ------------------------------------------------------------------------- Centro de Investigaci'ons Lig"u'isticas _/ e-mail: jcastro@cirp.es e Literarias "Ram'on Pi~neiro". _/ suso@udc.es Estrada Santiago-Noia km. 3 _/ phone : +34 (9)81 542691 15896 Santiago, A Coru~na, Spain _/ fax : +34 (9)81 543553 =========================================================================