P
P
Pavel Yakovlev2016-12-06 11:05:33
Windows
Pavel Yakovlev, 2016-12-06 11:05:33

How can I configure the service to automatically restart after a failure?

How to set up an automatic restart of the service after failures after 1 minute, for example, using the SC utility or an alternative out of the box, which could be used in a bat file. It is planned to use only a bat file, without related utilities.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Yakovlev, 2016-12-06
@Seinen

Thanks everyone, I already found the answer to my question, maybe it will be useful to someone:

sc failure "ServiceName" reset= 0 actions= restart/10000
reset is written in seconds
restart is written in milliseconds

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question