Using SC to install a windows service and then set recovery properties

后端 未结 1 896
暗喜
暗喜 2020-12-25 10:38

I want to set the Recovery Options on a Windows Service I\'m installing on a Windows Server 2003. I know this is possible to do manually, but I want to set the Recovery conf

1条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-25 11:01

    This syntax seems to work:

    sc failure MyService command= "\"c:\program files\myservice\myservice.exe\""
    

    0 讨论(0)
提交回复
热议问题