问题原文
原帖链接 · guettli · CC BY-SA 3.0
I know how to enable/disable lingering with loginctl.
But up to now I found no way to query the status of a user.
I want to know: Is lingering enable for user foo?
How can I access this information?
已采纳解答
原帖链接 · Markus Kuhn · CC BY-SA 3.0
You can show a list of lingering users with
ls /var/lib/systemd/linger
because
loginctl enable-linger $USER
loginctl disable-linger $USER
do the equivalent of
touch /var/lib/systemd/linger/$USER
rm /var/lib/systemd/linger/$USER
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
