Experimental Physics and Industrial Control System
On 1/14/20 12:19 AM, Michael Davidsaver wrote:
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 nssm
I 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.
- Replies:
- Re: Killing caRepeater on Windows 10 Hill, Jeff via Tech-talk
- References:
- Killing caRepeater on Windows 10 Mark Rivers via Tech-talk
- Re: Killing caRepeater on Windows 10 Michael Davidsaver via Tech-talk
- Re: Killing caRepeater on Windows 10 Johnson, Andrew N. via Tech-talk
- Re: Killing caRepeater on Windows 10 Michael Davidsaver via Tech-talk
- Navigate by Date:
- Prev:
Re: Multiline statement in iocsh Johnson, Andrew N. via Tech-talk
- Next:
Re: Killing caRepeater on Windows 10 Hill, Jeff via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
<2020>
2021
2022
2023
2024
2025
- Navigate by Thread:
- Prev:
Re: Killing caRepeater on Windows 10 Michael Davidsaver via Tech-talk
- Next:
Re: Killing caRepeater on Windows 10 Hill, Jeff via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
<2020>
2021
2022
2023
2024
2025