systemd system unit files and UsrMove

Nicolas Mailhot nicolas.mailhot at laposte.net
Mon Feb 20 20:20:06 UTC 2012


Le Lun 20 février 2012 21:07, Kay Sievers a écrit :
> On Mon, Feb 20, 2012 at 20:42, Nicolas Mailhot
> <nicolas.mailhot at laposte.net> wrote:
>>
>> Le Lun 20 février 2012 18:50, Kay Sievers a écrit :
>>> On Feb 20, 2012 6:25 PM, "Toshio Kuratomi" <a.badger at gmail.com> wrote:
>>
>>> Udev rules and systemd units belong to the installed daemon. This daemon
>>> can only exist exactly one single time, and never be installed by multilib
>>> packages, hence they do not ever belong into libdir.
>>
>> Actually, Udev rules and systemd units belong to the package that installed
>> them. That's why hiding them in a private lib dir is wrong
>>
>> When amavisd instaciates clamav using the generic unit shipped with clamav
>> but
>> using an amavisd-specific conf file the clamav systemd unid is shared with
>> amavisd
>>
>> That's why share is the natural place to share this arch-independant
>> configuration and putting it in /usr/lib is grandfathering an exception that
>> only existed because /share didn't exist
>
> I couldn't disagree more.
>
> /usr/share in our general understanding not to be used for
> package-private things.

But those files are not package-private! Even ignoring the example I just
gave, systemd units *will* be installed by different packages that *will* need
to be at least aware of the other units to handle ordering properly. Those
files are anything but package-private

-- 
Nicolas Mailhot



More information about the devel mailing list