From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076333621554.tru64-unix-managers.marc@archive.invalid> From: Mike Grau Date: Tue, 25 Jun 1996 14:53:18 +0000 To: tru64-unix-managers Subject: SUMMARY: daemons failing to start from init.d scripts X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076333621554 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@kcc.state.ks.us | ---------------------------------------------------------------------