Forums Search Login Register
New Posts Todays Posts Find Users Posts Unanswered Threads Help Mark Forums as Read

Thread Options  Subscribe to this thread Subscribed Users  Add Reply 
Posts: 1,387
Hi there
I need to launch a python script during system startup, and the script will run "forever". I was thinking about launching it from /etc/rc.local but there's a comment in there saying be sure to end the script with "exit 0".... I'm assuming the implication is that some other process is waiting for this script to finish fairly quickly and thus it would be a bad place to launch my script. Is this right?

So the question becomes: how/where to launch this script automatically?

Also, the script writes regularly to stdout, and I need to be able to peek at its output as needed, so it shouldn't be run in some way that it's output is lost. (redirecting it to a file, etc would be okay)

Any ideas would be a great help.
03-15-2013, 07:27 PM
Subscribe to this thread Subscribed Users  Add Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [xubuntu] In emergency mode after installing windows and running Boot-Repair medoebler82 0 2 Yesterday 01:38 PM
Last Post: medoebler82
  Can't launch Eclipse after installing uleilarosariog 0 1 09-22-2020 10:29 AM
Last Post: uleilarosariog
  [ubuntu] 530 5.7.0 Must issue a STARTTLS command first ISPC3 jsmelawson78 2 265 04-09-2020 07:25 PM
Last Post: FrankJScott
  [other] Activation of network connection failed upon startup Bakker 0 49 01-15-2020 05:31 AM
Last Post: Bakker
  One line command to check if automatic updates are enabled meloygoodwinq 0 44 12-04-2019 12:40 PM
Last Post: meloygoodwinq
  AMD Ryzen running Ub 18.04? benitooshiro 0 31 12-03-2019 10:19 PM
Last Post: benitooshiro
  byobu auto startup sh benitooshiro 0 48 11-07-2019 04:27 AM
Last Post: benitooshiro
  [ubuntu] Bluetooth Keyboard is not automatically connected on startup PaulMallow 0 46 10-25-2019 02:34 PM
Last Post: PaulMallow
  Ubuntu crashes during startup - Live disk not working either - Hardware error? xkentonhenslyyy 0 60 09-29-2019 06:00 PM
Last Post: xkentonhenslyyy
  [SOLVED] mdadm array creation - what's wrong with this command? nteddyflowccsj 4 516 09-20-2018 10:02 PM
Last Post: Monday12

Forum Jump:

User(s) browsing this thread: 1 Guest(s)

Contact Us Privacy Policy Top RSS
Forum Software By: MyBB, © 2002-2020