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?
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?
You can show a list of lingering users with
because
do the equivalent of
loginctl user-status foo
shows linger status.The best I found for check it in scripts (programmatically):