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 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
<== Date ==> <== Thread ==>

Subject: Re: CA gateway with systemd
From: Florian Feldbauer <florian@ep1.ruhr-uni-bochum.de>
To: tech-talk@aps.anl.gov
Date: Wed, 12 Jul 2017 16:54:38 +0200
Hey Ben,

I setup the ca gateway using systemd. But I had only one gateway running
on the machine.

Maybe my scripts give you a good starting point!

Best regards,

Florian


On 07/12/2017 03:06 PM, Benjamin Franksen wrote:
> Hello
>
> Does anyone have an example of how to start the CA PV gateway using
> systemd? Is there a recommended best practice?
>
> Note: we want to run many gateways on the same machine.
>
> Cheers
> Ben

-- 
----------------------------------------
| Dr. Florian Feldbauer                |
|                                      |
| Ruhr-Universität Bochum              |
| Experimentalphysik I AG              |
| Universitätsstr 150                  |
| D-44801 Bochum                       |
|                                      |
| Office: NB 2/134                     |
| Phone:  (+49)234 / 32-23563          |
----------------------------------------

d /var/run/epics 0755 pandadcs pandadcs
[Unit]
Description=EPICS CA Gateway
Requires=network.target
After=network.target
ConditionFileIsExecutable=/opt/epics/bin/cagateway
ConditionPathExists=!/etc/epics/cagateway/not_to_be_run

[Service]
EnvironmentFile=-/etc/default/cagateway
Type=simple
ExecStart="/opt/epics/bin/cagateway -log %h/cagateway.log -cip $CIP -sip $SIP -server -uid %U -gid `id -g %u` -archive -no_cache -home /opt/epics/ca-gateway/ -pvlist $PVLIST -access $ACCESS"
ExecReload=/opt/epics/ca-gateway/gateway.restart
ExecStop=/opt/epics/ca-gateway/gateway.killer
KillMode=process
Restart=on-failure
RestartSec=5s
User=pandadcs
PermissionsStartOnly=true

[Install]
WantedBy=multi-user.target


Replies:
Re: CA gateway with systemd Florian Feldbauer
References:
CA gateway with systemd Benjamin Franksen

Navigate by Date:
Prev: Re: ioc crashing while using asyn & modbus Mark Rivers
Next: Re: CA gateway with systemd Florian Feldbauer
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
Navigate by Thread:
Prev: CA gateway with systemd Benjamin Franksen
Next: Re: CA gateway with systemd Florian Feldbauer
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
ANJ, 12 Jul 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·