<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Monaco; min-height: 17px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">On Aug 9, 2007, at 3:01 AM, Robert Rawlins - Think Blue wrote:</DIV><P style="margin: 0.0px 0.0px 13.0px 0.0px"><FONT class="Apple-style-span" color="#0009E0">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: </FONT></P><P style="margin: 0.0px 0.0px 13.0px 0.0px"><FONT class="Apple-style-span" color="#0009E0">CD /myfolder/anotherfolder</FONT></P><P style="margin: 0.0px 0.0px 13.0px 0.0px"><FONT class="Apple-style-span" color="#0009E0">./myapp.py</FONT></P><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 13px; margin-left: 0px; "><FONT class="Apple-style-span" color="#0009E0"> </FONT><BR class="khtml-block-placeholder"></DIV><P style="margin: 0.0px 0.0px 13.0px 0.0px"><FONT class="Apple-style-span" color="#0009E0">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.</FONT></P><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">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.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Monaco; min-height: 17px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">hope this helps,</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Michael</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Monaco; min-height: 17px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">---</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">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</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><BR class="khtml-block-placeholder"></DIV></BODY></HTML>