How can I detect if a wine process isn't running?
I have an application that is closed source and buggy that crashes randomly running through Wine.
I was wondering how I could write a bash script to check for the process that is unstable and restart it if it dies automatically (which could be run every minute on cronjob)
Is it possible? Any tips? I'm ok at bash, but not good enough to do something like this.
Basically I want to detect if processname /usr/lib/wine/wineserver dies then do wineconsole foo.exe -bar option
((My current setup))
Currently I'm just doing
killall /usr/lib/wine/wineserver
wineconsole foo.exe -bar option
on a bi-hourly cronjob, but that still gives me a possible 2 hour downtime, and yet it still inconviences users (as it's a server)
Last edited by jon_k; 06-04-2005 at 05:45 AM.
|