Move daemons without an upstart job out of the user's cgroup

Asked by Matteo Panella

I'm facing a rather peculiar issue with Ubuntu 14.04: whenever a daemon with an initscript (instead of an upstart job) is started/restarted (either as a direct administrative action or as a consequence of a package installation/update), it's placed inside the user's session cgroup. This causes the session to linger in the "closing" state after logout, so logind does not properly clean up resources and device ACLs.

My current (ugly) workaround is spawning a new shell, putting it under the root systemd cgroup via cgmanager's MovePidAbs call and then start/restart the daemon.

Is it just a configuration issue, a bug or "working as intended"?

Question information

Language:
English Edit question
Status:
Open
For:
Ubuntu systemd-shim Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Matteo Panella (mpanella) said :
#1

After getting in touch with Steve Langasek, I opened the linked bug report.

Until the issue is fixed (if ever), the MovePidAbs is the only viable workaround.

Can you help with this problem?

Provide an answer of your own, or ask Matteo Panella for more information if necessary.

To post a message you must log in.