Comment # 55 on bug 906900 from
(In reply to Reinhard Max from comment #42)
> 
> Werner, is there a scriptable (I know it can be done in C) way to acchieve
> the side effects of "su -" without creating a new login session?

Why "su -" needs logind session in the first place? This seems to work in Arch
without it; what are the real reasons to have pam_systemd for su?

Anyway, here is test package for systemd that should fix it on systemd side. It
sets KillMode=none for scope units started from within sysvinit scripts. Change
is suprisingly small (all infrastructure was there already).

zypper ar obs://home:arvidjaar:bnc:906900/standard bnc906900
zypper refresh bnc906900
zypper dup -r bnc906900

You will need to reboot to make sure all parts are actually using updated
components. Of course, if initscript was already converted to systemd unit, it
will have no effects. For the cases when systemd unit calls initscript that
calls su you could set Environment=XDG_SESSION_CLASS=service though.


You are receiving this mail because: