Hi
If I understood your aims correctly:
- you can let systemd to kill also procServ (ref. to: man systemd.kill) via systemd service configuration,
- you can send control character, e.g.: ^Q, to procServ to quit itself, via shell script defined in 'ExecStop=' of the service,
then, in both cases, systemd may restart your service , if configured so.
The second option is based on procServControl (DLS Controls).
With ASCII control codes,
https://en.wikipedia.org/wiki/C0_and_C1_control_codes
, one can send any of procServ control commands to its management port, e.g:
# send ^Q to procServ
/bin/sh -c "/bin/echo -e '\x11' | /bin/nc -w 1 localhost 20000"
Cheers,
Tomas
________________________________________
Od: [email protected] [[email protected]] za uživatele Hinko Kocevar [[email protected]]
Odesláno: 6. února 2018 15:08
Komu: [email protected]
Předmět: procServ under systemd service
Hi,
I want to run procServ 2.7.0 that startd the IOC with systemd. I have
the .service file and things seems to behave quite nice so far.
What I need now is that after procServ child dies/exits control is
returned all the way to systemd service because I want to execute a
command after IOC has stopped.
Is there a way to tell procServ to exit after child has finished?
Systemd service would of course start procServ back up.
Thanks,
Hinko
- Replies:
- Re: procServ under systemd service Hinko Kocevar
- References:
- procServ under systemd service Hinko Kocevar
- Navigate by Date:
- Prev:
procServ under systemd service Hinko Kocevar
- Next:
Latency between NI LabVIEW RT (cRIO) and EPICS on RT Linux Johannes Spinneken (EGI)
- 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:
procServ under systemd service Hinko Kocevar
- Next:
Re: procServ under systemd service Hinko Kocevar
- 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
|