What's wrong with this daemon

From: Jesus Rodriguez Castro <jcastro_at_cirp.es>
Date: Mon, 27 Nov 1995 09:02:48 +0100 (MET)

Days ago I asked about reseting a daemon. I told you our problem
trying to put it down and up again, but as I am not the person who is
directly dealing with it, I didn't explain the problem correctly.

We are trying to reset the daemon. We have tried sending a HUP
signal but it makes the daemon finish its execution. So we decided to
make a script that put it down and up again.

We made a script with a parameter that can take one of these values:
        'start' or 'stop'.

Most of you told me to try with nohup and so we did. We've used 'nohup
<daemon> &' as a script sentence and when the script ends the daemon keeps on
(my jobmate told me it was something it did before, so I lied a little).
The problem arises when we close the window.

After adding 'nohup' it seems to work... sometimes. We are able to run the
daemon and close the windows. We are even able to log off and the daemon
keeps on. But now and then we try to start the daemon and when we close the
window the daemon goes down.

We've added the following to the line (it is an idea some of you gave us):

nohup <daemon> </dev/null >/dev/null 2>&1 &

trying this way to disconnect the daemon from the terminal, but the same
problem takes place.

I've realised (although I am not quite sure) that executing the script
being superuser fails more than being a normal user. But I find it
difficult to identify the origin of the problem as it seems to be a random
problem.

Thanks in advance and I am sorry I didn't explain the problem correctly
the first time.



           ,,,
          (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 Mon Nov 27 1995 - 12:35:54 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:46 NZDT