Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start/stop systemd user targets on logind state changes. #4463

Open
1 of 2 tasks
Stebalien opened this issue Oct 23, 2016 · 0 comments
Open
1 of 2 tasks

Start/stop systemd user targets on logind state changes. #4463

Stebalien opened this issue Oct 23, 2016 · 0 comments
Labels
login RFE 🎁 Request for Enhancement, i.e. a feature request

Comments

@Stebalien
Copy link
Contributor

Submission type

  • Bug report
  • Request for enhancement (RFE)

systemd version the issue has been seen with

systemd 231
+PAM -AUDIT -SELINUX -IMA -APPARMOR -SMACK -SYSVINIT -UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN

Used distribution

Arch Linux

Description

It would be nice if the systemd user instance mapped various logind state changes to target units. Specifically:

  • On sleep, take out an inhibitor and start a user sleep.target unit (stopping it on wake).
  • When a new session is added (for the user in question), start a session@$SESSION_ID.target user unit.
  • When a session is removed start a logout@$SESSION_ID.target unit that conflicts with session@$SESSION_ID.target. It may be sufficient to simply stop session@$SESSION_ID.target but starting a logout target mirrors the system-wide shutdown unit.
@poettering poettering added RFE 🎁 Request for Enhancement, i.e. a feature request login labels Oct 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
login RFE 🎁 Request for Enhancement, i.e. a feature request
Development

No branches or pull requests

2 participants