Re: [systemd-devel] socket unit refusing connection when JOB_STOP is pending

2017-06-05 Thread Michal Sekletar
On Wed, May 31, 2017 at 3:43 PM, Moravec, Stanislav (ERT) wrote: > FYI: > I tried to simply bypass the pending job check: > +int ignore_stop_pending = true; > static void socket_enter_running(Socket *s, int cfd) { > ... > -if (unit_stop_pending(UNIT(s))) { > +if (!ignore_stop_pendi

Re: [systemd-devel] socket unit refusing connection when JOB_STOP is pending

2017-05-31 Thread Moravec, Stanislav (ERT)
FYI: I tried to simply bypass the pending job check: +int ignore_stop_pending = true; static void socket_enter_running(Socket *s, int cfd) { ... -if (unit_stop_pending(UNIT(s))) { +if (!ignore_stop_pending && unit_stop_pending(UNIT(s))) { But, as expected, it's not as that easy - t

Re: [systemd-devel] socket unit refusing connection when JOB_STOP is pending

2017-05-31 Thread Michal Sekletar
On Mon, May 29, 2017 at 5:44 PM, Lennart Poettering wrote: > This is indeed a shortcoming in systemd's model right now: we don't > permit a start and a stop job to be enqueued for the same unit at the > same time. But to do what you want to do we'd need to permit that: the > service is supposed t

Re: [systemd-devel] socket unit refusing connection when JOB_STOP is pending

2017-05-30 Thread Moravec, Stanislav (ERT)
Uoti, yes, it was about Redhat/Centos7 authd (rfc 1413) service, so it was the latter - one child process per each connection: auth@.service:[Unit] auth@.service:Description=Authd Ident Protocol Requests Server auth@.service:After=local-fs.target auth@.service: auth@.service:[Service] auth@.ser

Re: [systemd-devel] socket unit refusing connection when JOB_STOP is pending

2017-05-30 Thread Uoti Urpala
On Tue, 2017-05-30 at 18:07 +, Moravec, Stanislav (ERT) wrote: > OK. Understood, thanks much! > We'll try to follow up on using some parent process (xinetd or something like > that). BTW your problem description wasn't very clear. Is your specific problem case about socket activation of norma

Re: [systemd-devel] socket unit refusing connection when JOB_STOP is pending

2017-05-30 Thread Moravec, Stanislav (ERT)
Stan -Original Message- From: Lennart Poettering [mailto:lenn...@poettering.net] Sent: Monday, 29 May, 2017 17:45 To: Moravec, Stanislav (ERT) Cc: systemd-devel@lists.freedesktop.org Subject: Re: [systemd-devel] socket unit refusing connection when JOB_STOP is pending On Tue, 16.05.17

Re: [systemd-devel] socket unit refusing connection when JOB_STOP is pending

2017-05-29 Thread Lennart Poettering
On Tue, 16.05.17 11:28, Moravec, Stanislav (ERT) (stanislav.mora...@hpe.com) wrote: > Hello all, > > I wanted to seek your opinion about correctness of the current behavior > of socket activated units. > > Let's assume we have socket activated service (for example authd - > auth.socket) and >

Re: [systemd-devel] socket unit refusing connection when JOB_STOP is pending

2017-05-24 Thread Moravec, Stanislav (ERT)
refusing connection when JOB_STOP is pending Hello all, I wanted to seek your opinion about correctness of the current behavior of socket activated units. Let's assume we have socket activated service (for example authd - auth.socket) and some other background service (for the purpose of this

[systemd-devel] socket unit refusing connection when JOB_STOP is pending

2017-05-16 Thread Moravec, Stanislav (ERT)
Hello all, I wanted to seek your opinion about correctness of the current behavior of socket activated units. Let's assume we have socket activated service (for example authd - auth.socket) and some other background service (for the purpose of this test called authtest.service) that needs to