Experimental Physics and
| |||||||||||||||
|
Has anyone ever spun caRepeater as a windows service? https://docs.microsoft.com/en-us/windows/win32/services/svc-cpp It looks like processes have to explicitly say that they should be run as a service for the standard Microsoft tool 'sc create' to work. However I have just managed to set up our standard caRepeater.exe to start automatically on my system using NSSM - the Non-Sucking Service Manager (great name!) which seems to be the recommended way to do this. I actually installed it with C:\>choco install nssmI love Chocolatey, it makes installing software on Windows so much easier than doing it by hand. Then created and started the new service using C:\>nssm install "CA Repeater" C:\epics\bin\caRepeater.exe C:\>nssm start "CA Repeater"Now the repeater appears in the task manager as a background process, and should start automatically whenever the machine comes up. The nssm will also restart it if it ever dies for some reason. Note that I copied a statically built caRepeater.exe into the above directory, I don't want to use the binary from one of my build directories because I'd have to stop and restart the service every time I rebuilt that copy of Base. You can use the caRepeater.exe from any version of Base, they all do exactly the same thing. HTH, - Andrew -- Complexity comes for free, Simplicity you have to work for.
| ||||||||||||||
ANJ, 15 Jan 2020 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |