SUMMARY: daemons failing to start from init.d scripts

From: Mike Grau <mikeg_at_wildcat.kcc.state.ks.us>
Date: Tue, 25 Jun 1996 09:53:18 -0500 (CDT)

In response to my question:

I am new to OSF and have inherited a DEC 3000/800S server running dUniX 3.2c.
I am trying to start the pop and httpd daemons at startup. ....
The script executes fine, but on a reboot the script starts the daemon,
but it apparently dies.

I received the following replies virtually unanimous in their solution:

1. start the command you want run with a "nohup", and put a sleep in for a
    few seconds at the end of the initialising script.

2. You will find that your daemon is getting a signal (a HUP from memory),
    when the script exits, trap this signal, and all should work.

3. I'm probably one of many replying to your problem, so I'll keep
    it short. nohup. Check it out in the man pages. I had to do the same
    thing you are and it worked like a charm.

4. Have a look at 'nohup', not the one in 'csh'. Do a 'man nohup'.
    You need to place something in your init.d script where you run the
    deamon:

    /usr/bin/nohup popd

    This makes the popd deamon ignore SIGHUP signals.



Sincere thanks to Andy Adamson, Dougal Scott, Karl Liebert, Joe Spanicek,

End of problem.

---------------------------------------------------------------------
| Michael Grau | |
| Kansas Corporation Commission | Tel: (913) 271-3236 |
| 1500 SW Arrowhead RD | Fax: (913) 271-3354 |
| Topeka, KS 66606-4027 | |
| | email: mikeg_at_kcc.state.ks.us |
---------------------------------------------------------------------
Received on Tue Jun 25 1996 - 17:25:20 NZST

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