[systemd-devel] Special targets - should they Want or be WantedBy?

Andrey Borzenkov arvidjaar at mail.ru
Wed Mar 23 05:35:35 PDT 2011


On Fri, Mar 18, 2011 at 3:06 PM, Mike Kazantsev <mk.fraggod at gmail.com> wrote:
> On Fri, 18 Mar 2011 14:11:47 +0300
> Andrey Borzenkov <arvidjaar at mail.ru> wrote:
>
>> On Fri, Mar 18, 2011 at 8:31 AM, Mike Kazantsev <mk.fraggod at gmail.com> wrote:
>> >
>> > That'd make all the systems with currently enabled services in
>> > network.target.wants misconfigured - network should fail on these
>> > unless something Requires= (or Wants=) network.target explicitly (which
>> > was marked as a wrong way to depend on network), so I think maybe some
>> > larger announcement for packagers is in order as well, to leave less
>> > broken systems and angry users as a result ;)
>> >
>>
>> I am not sure I really understand this. When you speak about services
>> WantedBy network.target - do you mean services activated on-demand
>> when network becomes available.
>
> No, these are services that make the network work.
> They are pulled in for network.target, so any service starting after
> that will be able to bind to some interface or connect to a remote host.
>
>

OK, but how they are broken now? If you start network.target by some
external means (IIRC it was not started by default) it will continue
to work as before - nothing is changed.

I really miss something obvious here.

>> Could you give example?
>
> Sure, I have this mix (for two machines):
>
> rpcbind.service
> rpcidmapd.service
> rpcstatd.service
> wicd.service
> ypbind-mt.service
> epmd.service
> ipsec.service
> net at core.service
> net-firewall.service
> net at he6.service
> net-lo.service
> net at tnet.service
> net at xtit.service
>
> net at .service is just a template to start static network configuration
> script, other net-* stuff follows the same purpose, the rest are more or
> less what comes with the distro.
> I'm fairly sure that common units for other stuff like connman,
> wpa_supplicant or dhcpcd will also be in this category.
>
>
> --
> Mike Kazantsev // fraggod.net
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
>


More information about the systemd-devel mailing list