Experimental Physics and Industrial Control System
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>
2018
2019
2020
2021
2022
2023
2024
- 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>
2018
2019
2020
2021
2022
2023
2024