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 <daemon> </dev/null >/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_at_cirp.es
e Literarias "Ram'on Pi~neiro". _/ suso_at_udc.es
Estrada Santiago-Noia km. 3 _/ phone : +34 (9)81 542691
15896 Santiago, A Coru~na, Spain _/ fax : +34 (9)81 543553
=========================================================================
Received on Tue Nov 28 1995 - 11:18:08 NZDT