Hi Tomas,
thanks for the suggestions.
Actually I was looking for a way for procServ to exit once the client
has died. I know this sounds silly since procServ is supposed to live
forever and restart the client if it dies.. maybe I need to rethink my
strategy about this.
Cheers,
Hinko
On Tue, Feb 6, 2018 at 3:41 PM, Mazanec Tomáš
<[email protected]> wrote:
>
> 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
--
.. the more I see the less I believe.., AE AoR
- Replies:
- Re: procServ under systemd service Ralph Lange
- References:
- procServ under systemd service Hinko Kocevar
- RE: procServ under systemd service Mazanec Tomáš
- Navigate by Date:
- Prev:
RE: FLIR Spinnaker SDK: Request for input ulrik.pedersen
- Next:
RE: EtherCAT newbie question ronaldo.mercado
- 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: procServ under systemd service Mazanec Tomáš
- Next:
Re: procServ under systemd service Ralph Lange
- 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
|