Re: starting a python script as a background process

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux