[Tutor] Init Script (RHEL 5 Linux)

Tom Tucker tktucker at gmail.com
Mon Mar 7 22:49:12 CET 2011

Hello. I am trying implement a *one time* execution of an init script.  Any
recommendation on how to fork or detach this
script from the normal init 3 execution process so that it doesn't hold up
other activities?


Here is the high level logic.

   1. Execute script
      1. perform these activities
   2. Check network connectivity
      1. If connectivity: perform these activities
         1. Delete init script os.remove(sys.argv[0])
      2. If no connectivity:
         - Sleep 15 seconds
         - Check connectivity again
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110307/64a89d69/attachment.html>

More information about the Tutor mailing list