EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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  <20202021  2022  2023  2024  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  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Killing caRepeater on Windows 10
From: "Hill, Jeff via Tech-talk" <[email protected]>
To: "Johnson, Andrew N." <[email protected]>, "Tech Talk ([email protected])" <[email protected]>
Date: Wed, 15 Jan 2020 22:56:03 +0000

FWIW:


In past releases of EPICS if windows is built debug, during development, then the caRepeater process is created with an associated console window, which makes it easier to stop. I have also, in the past, added an explicit caRepeater process kill commandl to my  build script, on windows.


Jeff


From: Tech-talk <[email protected]> on behalf of Johnson, Andrew N. via Tech-talk <[email protected]>
Sent: Wednesday, January 15, 2020 3:36:17 PM
To: [email protected]
Subject: [EXTERNAL] Re: Killing caRepeater on Windows 10
 
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.

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
Re: Killing caRepeater on Windows 10 Johnson, Andrew N. via Tech-talk

Navigate by Date:
Prev: Re: Killing caRepeater on Windows 10 Johnson, Andrew N. via Tech-talk
Next: RE: EtherIP EPICS Support: Invalid Service 0x52 Guerra, Roy Ignacio 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  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Killing caRepeater on Windows 10 Johnson, Andrew N. via Tech-talk
Next: Re: Killing caRepeater on Windows 10 Žiga Oven 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  <20202021  2022  2023  2024 
ANJ, 15 Jan 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·