supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* Expected behaviour zombie processes
@ 2020-12-01  9:45 Oliver Schad
  2020-12-01 10:25 ` Laurent Bercot
  0 siblings, 1 reply; 2+ messages in thread
From: Oliver Schad @ 2020-12-01  9:45 UTC (permalink / raw)
  To: supervision

[-- Attachment #1: Type: text/plain, Size: 779 bytes --]

Hi everybody

I've observed the following situation:

root       490  0.0  0.0  13004  1596 ?        S    Nov05   0:00   s6-supervise lxe
root      2738  0.6  0.0      0     0 ?        Zsl  Nov05 251:13     [lxe] <defunct>

So you see a zombie process. What is the expected behaviour of
s6-supervise here? I would expect, that this case is solved immediatly
by s6-supervise and a new process is spawned.

The observed behaviour was, that no new process was spawned and even
s6-svc -r didn't respawn a process.

Best Regards
Oli

-- 
Automatic-Server AG •••••
Oliver Schad
Geschäftsführer
Turnerstrasse 2
9000 St. Gallen | Schweiz

www.automatic-server.com | oliver.schad@automatic-server.com
Tel: +41 71 511 31 11 | Mobile: +41 76 330 03 47

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Expected behaviour zombie processes
  2020-12-01  9:45 Expected behaviour zombie processes Oliver Schad
@ 2020-12-01 10:25 ` Laurent Bercot
  0 siblings, 0 replies; 2+ messages in thread
From: Laurent Bercot @ 2020-12-01 10:25 UTC (permalink / raw)
  To: Oliver Schad, supervision

>Hi everybody
>
>I've observed the following situation:
>
>root       490  0.0  0.0  13004  1596 ?        S    Nov05   0:00   s6-supervise lxe
>root      2738  0.6  0.0      0     0 ?        Zsl  Nov05 251:13     [lxe] <defunct>
>
>So you see a zombie process. What is the expected behaviour of
>s6-supervise here? I would expect, that this case is solved immediatly
>by s6-supervise and a new process is spawned.
>
>The observed behaviour was, that no new process was spawned and even
>s6-svc -r didn't respawn a process.

  Hi Oli,
  There is no indication that the zombie lxe process is a direct child
of s6-supervise. What does 's6-svstat /run/service/lxe' say?

  If that lxe process was s6-supervise's child, s6-supervise should
definitely reap the zombie immediately and spawn a new lxe process;
failing to do so would be a bug that has, to my knowledge, never
happened. There is definitely something else at play here.

--
  Laurent


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-01 10:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-01  9:45 Expected behaviour zombie processes Oliver Schad
2020-12-01 10:25 ` Laurent Bercot

supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/supervision

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 supervision supervision/ http://inbox.vuxu.org/supervision \
		subscribe@list.skarnet.org
	public-inbox-index supervision

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.supervision.general


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git