I'm unable to start an msproxy service on a Windows 2012R2 box.
After following the documentation on installing ruby, compiling, and
finally getting to the point where I can successfully run ruby
bin\smart-proxy, I attempted to create a service yet I don't seem to be
able to.
I've used both the register-service.rb as well as new-service powershell
cmdlets to manually create a service.
Both create a service that never properly starts, nor generates any logs.
Manually running as a local user will generate a log that simply dumps:
2017-06-10 22:52:19 -0700 Service is initializing
2017-06-10 22:52:22 -0700 Daemon failure: Service_Main thread exited
abnormally
C:/opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/win32-service-0.8.8/lib/win32/daemon.rb:280:in
mainloop' C:/opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/win32-service-0.8.8/lib/win32/daemon.rb:215:in
mainloop'
C:/Program Files/Foreman-SmartProxy/bin/smart-proxy-win-service:39:in
`<main>'
Again, running smart-proxy works just fine, only the service fails.
Anyone able to get the win proxy to actually work? Side thought: what a
horrific install process, why isn't this just a choco package and module
… so it can be installed/configured via puppet like the rest of foreman?