[systemd-devel] Enablement symlink path for built-in units
Daniel Wang
wonderfly at google.com
Mon Mar 12 01:25:44 UTC 2018
Thanks!
On Sat, Mar 10, 2018 at 12:32 PM, Mantas Mikulėnas <grawity at gmail.com>
wrote:
> On Sat, Mar 10, 2018, 21:42 Daniel Wang <wonderfly at google.com> wrote:
>
>> I am puzzled by the fact that while symlinks for most builtin units are
>> installed at /usr/lib/systemd/system, a few are linked at
>> /etc/systemd/system, for example, systemd-networkd.service and
>> systemd-timesyncd.service.
>>
>> https://github.com/systemd/systemd/blob/master/units/
>> meson.build#L187:L191
>>
>> Why the difference?
>>
>
> Symlinks in /usr are supposed to be essentially fixed: the distro installs
> them as part of the package and the unit is always enabled, unless masked.
> (Some of them don't even have an [Install] section.)
>
> Symlinks in /etc, meanwhile, are just defaults for someone who installs
> from source; the service itself is optional and distros might apply the
> same defaults via presets, or via post_install, or not at all. In any case
> the admin can still disable networkd and timesyncd using normal commands.
>
>> --
>
> Mantas Mikulėnas <grawity at gmail.com>
> Sent from my phone
>
--
Best,
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20180311/d38541f9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4849 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20180311/d38541f9/attachment.bin>
More information about the systemd-devel
mailing list