Sign in to follow this  
Followers 0
Hellouser

How do i set a process recovery parameter

4 posts in this topic

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!!

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by Demonic

Share this post


Link to post
Share on other sites

Think the OP is talking about the recovering options of the Service itself when checking its Properties selecting the Recovery Tab.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0