c# - How to set recovery action for windows service -




i looking solution how set recovery action when service fails programmaticaly in c#. there 4 options under service | properties | recovery. default 1 "take no action". set "restart service" external program written in c#. can start/stop service program don't find anyway set recovery action ("restart service").

enter image description here

to run external program, select "run program" option , fill in details:

enter image description here

your c# program can restart service if happen.





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -