Hellouser Posted October 24, 2009 Share Posted October 24, 2009 Hi Guys, I have a script, when i am running it ,automatically it install and will become a service. I want to set the process recovery options automatically. Like if the service exe got closed i want to relaunch it automatically. Is it possible to do ?. Thanks!! Link to comment Share on other sites More sharing options...
martin Posted October 24, 2009 Share Posted October 24, 2009 Hi Guys,I have a script, when i am running it ,automatically it install and will become a service.I want to set the process recovery options automatically. Like if the service exe got closed i want to relaunch it automatically. Is it possible to do ?.Thanks!!You need to have 2 processes running. If one stops the other starts it again. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Demonic Posted October 24, 2009 Share Posted October 24, 2009 (edited) Could he not use Opt("OnExitFunc", "ReLaunch") and have the ReLaunch function opening the process that hes already running? I suppose this would only work by manually closing the process, and not if it crashed and couldnt execute the exit function, but. Edited October 24, 2009 by Demonic Link to comment Share on other sites More sharing options...
Developers Jos Posted October 24, 2009 Developers Share Posted October 24, 2009 Think the OP is talking about the recovering options of the Service itself when checking its Properties selecting the Recovery Tab. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now