Subject: |
Re: IOCs under procServ as system services under systemd? |
From: |
"Konrad, Martin" <[email protected]> |
To: |
EPICS Tech-Talk <[email protected]> |
Date: |
Mon, 27 Jun 2016 14:38:29 +0000 |
Hi all,
Niklas and Stefani, thanks for sharing your systemd unit configuration.
It came just at the right time :-) I put together a similar one. Using
the foreground option (-f) of procServ is the recommended way with
systemd. My unit configuration [1] differs in some details:
> ConditionFileIsExecutable=/usr/bin/procServ
> ConditionFileIsExecutable=/usr/local/ops/iocBoot/ioccontrol/st.cmd
This causes systemd to silently skip the service if one of these files
is not executable. Stefani, are you sure that's the behavior you want? I
would prefer it to fail with an error message instead (remove these two
lines).
I'm using "Restart=always" to make sure procServ is restarted
automatically even if it exited cleanly. I don't want users to find out
that they are not able to restart procServ after they shut it down by
pressing Ctrl-Q.
Note how systemd makes our life as developers easier: Daemons don't need to
- fork
- write PID files
- drop privileges by themselves
Systemd takes care of all these things for us :-)
Cheers,
Martin
[1]
https://stash.nscl.msu.edu/projects/DEPLOY/repos/puppet_module_epics_softioc/browse/templates/etc/systemd/system/ioc.service
--
Martin Konrad
Control System Engineer
Facility for Rare Isotope Beams
Michigan State University
640 South Shaw Lane
East Lansing, MI 48824-1321, USA
Tel. 517-908-7253
Email: [email protected]
- Replies:
- Re: IOCs under procServ as system services under systemd? Andrew Johnson
- References:
- IOCs under procServ as system services under systemd? Ralph Lange
- Re: IOCs under procServ as system services under systemd? Niklas Claesson
- Navigate by Date:
- Prev:
Re: question of data conversion Remi Faure
- Next:
Re: IOCs under procServ as system services under systemd? Andrew Johnson
- 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:
Re: IOCs under procServ as system services under systemd? S. Banerian
- Next:
Re: IOCs under procServ as system services under systemd? Andrew Johnson
- 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
|