Re: [systemd-devel] /usr/lib/systemd/*.wants vs. Wants in unit definition

2016-06-07 Thread Lennart Poettering
On Mon, 06.06.16 14:56, Andrei Borzenkov (arvidj...@gmail.com) wrote: > On Mon, Jun 6, 2016 at 2:26 PM, Martin Pitt wrote: > > Andrei Borzenkov [2016-06-06 13:55 +0300]: > >> What is advantage in having static *.wants etc directories in > >> /usr/lib/systemd vs. Wants etc

Re: [systemd-devel] /usr/lib/systemd/*.wants vs. Wants in unit definition

2016-06-06 Thread Simon McVittie
On 06/06/16 15:17, Martin Pitt wrote: > Of course it could also just do the usual WantedBy= in the unit and > call systemctl enable on installation (that's what the Debian package > does) Most Debian packages with systemd services do this, but there are exceptions. > but there are cases where

Re: [systemd-devel] /usr/lib/systemd/*.wants vs. Wants in unit definition

2016-06-06 Thread Martin Pitt
Andrei Borzenkov [2016-06-06 14:56 +0300]: > Sorry I had to be more clear. What is advantage of shipping them in > systemd? Systemd has well defined early boot services that are always > needed. Why they are shipped as links instead of actually expressing > those mandatory dependencies in unit

Re: [systemd-devel] /usr/lib/systemd/*.wants vs. Wants in unit definition

2016-06-06 Thread Andrei Borzenkov
On Mon, Jun 6, 2016 at 2:26 PM, Martin Pitt wrote: > Andrei Borzenkov [2016-06-06 13:55 +0300]: >> What is advantage in having static *.wants etc directories in >> /usr/lib/systemd vs. Wants etc directives directly in unit definition? >> They complicate troubleshooting

Re: [systemd-devel] /usr/lib/systemd/*.wants vs. Wants in unit definition

2016-06-06 Thread Jan Alexander Steffens
On Mon, Jun 6, 2016 at 1:27 PM Martin Pitt wrote: > Andrei Borzenkov [2016-06-06 13:55 +0300]: > > What is advantage in having static *.wants etc directories in > > /usr/lib/systemd vs. Wants etc directives directly in unit definition? > > They complicate troubleshooting

Re: [systemd-devel] /usr/lib/systemd/*.wants vs. Wants in unit definition

2016-06-06 Thread Martin Pitt
Andrei Borzenkov [2016-06-06 13:55 +0300]: > What is advantage in having static *.wants etc directories in > /usr/lib/systemd vs. Wants etc directives directly in unit definition? > They complicate troubleshooting (you no more have complete definition > by looking just at unit source), they

[systemd-devel] /usr/lib/systemd/*.wants vs. Wants in unit definition

2016-06-06 Thread Andrei Borzenkov
What is advantage in having static *.wants etc directories in /usr/lib/systemd vs. Wants etc directives directly in unit definition? They complicate troubleshooting (you no more have complete definition by looking just at unit source), they complicate building (extra steps to install them); what