1837978 Members
2529 Online
110124 Solutions
New Discussion

pb with nohup

 
GRP_2
Occasional Advisor

pb with nohup

Hi,

I have a script used at the boot, correctly installed (in /sbin/init.d and linked from /sbin/rc2.d/Kxxx and /sbin/rc3.d/Sxxx)

This script calls another script with "su - user -c script". On this 2nd script, programs are started by "nohup pgm &" ...

But no nohup.out files are created and all program's message are made in /etc/rc.log ...

Why ?

Thanks in advance.
3 REPLIES 3
Steve Steel
Honored Contributor

Re: pb with nohup

Hi


try

1. The full pathname of nohup

2. nohup command > nohup.out 2>&1


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
GRP_2
Occasional Advisor

Re: pb with nohup

Thanks Steve ...

I already tried your 2nd solution, and it worked.

My pb is that, started with command line on a shell, my script works ... but no at boot time!

Why ?...
Sanjay_6
Honored Contributor

Re: pb with nohup

Hi,

Check the environment variables / profiles that might be passed on to the script when run through command lines. probably the same set of variables are not passed on using startp script. You should also look if this application need a prerequisite for startup, say the availabaility of another package / application / database.

Hope this helps.

Regds