[systemd-devel] systemctl preset for user units (and how presets are applied after factory reset)

2014-10-27 Thread Colin Guthrie
Hi, When implementing socket activation for PulseAudio, the question came up of how to ship the enablement when running make install. In my first incarnation I simply shipped a /usr/lib/systemd/user/socket.target.wants/pulseaudio.socket symlink. I did this because I considered this a vendor

Re: [systemd-devel] systemctl preset for user units (and how presets are applied after factory reset)

2014-10-27 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Oct 27, 2014 at 10:42:56AM +, Colin Guthrie wrote: So that led me to ask myself: does systemctl preset support user units? The man page doesn't make it clear that e.g. the --global switch applies to preset as well as enable, but in testing it (happily) appears to work! So I'm going

Re: [systemd-devel] systemctl preset for user units (and how presets are applied after factory reset)

2014-10-27 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Oct 27, 2014 at 02:16:38PM +, Colin Guthrie wrote: Zbigniew Jędrzejewski-Szmek wrote on 27/10/14 13:52: [As a side note, if this is the recommended approach, then we should probably add appropriate RPM macros to macros.systemd for user unit presets...] Good point. I