Hi All,
I'm trying to run Consul.exe as a Windows service because I need a service that works in "non-stop" mode (automatic restart on a failure, control by OS on startup/shutdown).
Thus, I created my service using the following command:
sc create "Consul" binPath= "C:\consul.io\consul.exe agent -config-dir "c:\consul.io\consul.d\bootstrap" --ui-dir "c:\consul.io\ui"" type= share start= auto
Config file:
{
"bootstrap": true,
"server": true,
"datacenter": "RG",
"data_dir": "c:\\consul.io\\data\\",
"ui_dir": "c:\\consul.io\\ui",
"encrypt": "U+ff6ZZlI7Zm4w2oHWVCSg==",
"log_level": "Trace"
}
But this service cannot be started as it does not respond to the start or control Windows requests.
Do I understand correctly that consul.exe windows binary file does not support Windows service methods? If so, how can I use consule on Windows like an unix daemon?
Thank you,
Alex