[Bug 1298715] Review Request: xlogin - Automatic X login service for systemd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1298715



--- Comment #7 from Zbigniew Jędrzejewski-Szmek <zbyszek@xxxxxxxxx> ---
So... it seems that systemd presets are non-functional for templates. I'm
pretty sure they worked at one point, but seem broken now:

$ systemctl preset getty@.service
Failed to execute operation: Unit name getty@.service is not valid.
This is supposed to enable DefaultInstance in the template. This might not be
very useful, but it should work. https://github.com/systemd/systemd/issues/2345
duly files.

Ideally presets could be used to enable specific instances, like discussed in
http://lists.freedesktop.org/archives/systemd-devel/2015-August/033832.html.
But even without that, the scriptlets should be used. Presets should get fixed
at some point, and you still want to keep the %preun, %postun parts. I think
you need to use xlogin@*.service for the %preun, %postun scriptlets.

To summarize:
%post
%systemd_post xlogin@.service %{name}@.service

%preun
%systemd_preun xlogin@*.service %{name}@*.service

%postun
%systemd_postun xlogin@*.service %{name}@*.service

You're in uncharted territory here ;)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list
package-review@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/package-review




[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]