Jump to content

How do i set a process recovery parameter


Hellouser
 Share

Recommended Posts

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

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

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
Link to comment
Share on other sites

  • Developers

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...