Application monitor

Mike Meyer mwm at mired.org
Mon Nov 7 18:20:14 EST 2005


"dcrespo" <dcrespo at gmail.com> writes:
> Main application starts
> This one starts the App Monitor of itself. (This means that if Main
> Application closes, the App Monitor restart it)
>
> And viceversa means that if App Monitor closes, the Main application
> restart it.
>
> How can I accomplish this?
>
> I've been thinking in wx.SingleInstanceChecker (from wxPython GUI
> library). If it doesn't exist, then call os.system(<program_name>). But
> I don't know if there's a better way.

"Better" depends on what your requirements are. Personally, I use init
as an app monitor. It doesn't need monitoring - if it's dead, your
Unix has a lot worse problems than one application being down.

     <mike
-- 
Mike Meyer <mwm at mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.



More information about the Python-list mailing list