starting a python script as a background process

Alexander Dalloz ad+lists at uni-x.org
Sat Apr 9 13:56:20 UTC 2005


Am Sa, den 09.04.2005 schrieb Claude Jones um 15:37:

[ reordered due to top-posting ]

> Oded Maimon wrote:
> 
> > run it as:
> >
> > nohup python scripts/sb_server.py &

> Thank you, I didn't know about this command and after reading up on it, 
> I have more questions. This seems to deal with the issue of starting the 
> process and not having to leave the terminal window open. I didn't test 
> this because I have to leave in a moment. But, the other issue I had was 
> that when running the commands from rc.local during bootup, my bootup 
> stalled. Are you suggesting that using this command will also deal with 
> that issue?

> Claude Jones

If you run a command from /etc/rc.local but do not send it to
background, it will occupy the terminal and the startup stops until you
release it. Placing a "&" at the end of the command would help too. But
I recommend you better write an init script for your proxy daemon
process, rather than to run it from rc.local.

/usr/share/doc/initscripts*/sysvinitfiles

holds an skeleton example.

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.10-1.771_FC2smp 
Serendipity 15:51:04 up 10 days, 13:17, load average: 0.24, 0.53, 0.53 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20050409/4063f7a1/attachment-0001.sig>


More information about the fedora-list mailing list