Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

init hook causing crash on &

Status
Not open for further replies.

reinstalled

IS-IT--Management
Feb 18, 2003
178
Hooked a script into rc5 to run at boot. It calls a second script that has an "&" to run in the background. What is happening is that the initial script IS calling the second but then crashes out. We have confirmed that removing the "&" from the initial script prevents the crashing. When interactively calling the script it runs just fine so it appears to have something to do with the environment that init runs in?

Has anyone run into this before?
 
Have you tried using "[tt]nohup[/tt]"? That more cleanly separates the called script from the calling script.

Also, regarding the environment, you should be defining everything that the script needs. Fully specify the paths.

Have you run it in debug and checked its logs?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top