Launching App

Michael Bentley michael at jedimindworks.com
Thu Aug 9 12:39:15 CEST 2007


On Aug 9, 2007, at 3:01 AM, Robert Rawlins - Think Blue wrote:
I’m looking for the best method to launch my python app when my Linux  
system boots up. At the moment I just have an entry like this in my  
rc.local file:

CD /myfolder/anotherfolder

./myapp.py


Is this the best way to do this? Or is there a better way? I feel  
like a bit of a dummy asking this question, I just wanted to ensure  
the best method.

A better way is to use the SYSV init system: create a start/stop/ 
status script for your app in /etc/init.d (use existing scripts in  
that directory for examples of what you can do). On Debian, you can  
then use update-rc.d to create the appropriate symlinks.

hope this helps,
Michael

---
Debugging is twice as hard as writing the code in the first place.   
Therefore, if you write the code as cleverly as possible, you are, by  
definition, not smart enough to debug it. --Brian W. Kernighan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070809/50d51aef/attachment.html>


More information about the Python-list mailing list