[systemd-devel] Concurrent login / daemon-reload produces abandoned sessions

Nicolas Bock nicolas.bock at canonical.com
Wed Jul 7 12:12:51 UTC 2021


Hi,

Using systemd-248.3-1ubuntu1 on Ubuntu Impish the following
script produces multiple abandoned sessions:

	$ for i in {1..100}; do sleep 0.2; ssh localhost sudo systemctl daemon-reload & ssh localhost sleep 1 & done
	$ sleep 2
	$ jobs -p | xargs --verbose --no-run-if-empty kill -KILL
	$ systemctl | grep abandoned
	  session-174.scope                    loaded active     abandoned Session 174 of user ubuntu
	  session-175.scope                    loaded active     abandoned Session 175 of user ubuntu
	  session-176.scope                    loaded active     abandoned Session 176 of user ubuntu
	  session-25.scope                     loaded active     abandoned Session 25 of user ubuntu

I would like to debug this behavior further and understand
why this is happening but don't know where to look next. Is
there any information in particular I should look at?

Thanks!

Nick


More information about the systemd-devel mailing list