On Wed, Nov 16, 2016 at 6:45 PM, Ian Stakenvicius <a...@gentoo.org> wrote:
> On 16/11/16 06:25 PM, William Hubbs wrote:
>> On Wed, Nov 16, 2016 at 06:19:28PM -0500, Ian Stakenvicius wrote:
>>> On 16/11/16 06:16 PM, William Hubbs wrote:
>>>> On Wed, Nov 16, 2016 at 06:09:59PM -0500, Ian Stakenvicius wrote:
>>>>> On 16/11/16 03:21 PM, William Hubbs wrote:
>>>>>>
>>>>>> I can make the service scripts call the systemd-tmpfiles service if it
>>>>>> is available or if not call the opentmpfiles implementation.
>>>>>>
>>>>>> I'm not sure whether it is worth having a separate package for the
>>>>>> service scripts in this case.
>>>>>
>>>>> That would depend on where the service scripts are sitting, I guess --
>>>>> do you mean here that openrc will keep its current tmpfiles.dev and
>>>>> tmpfiles.setup scripts?  If that's the case wouldn't openrc need to
>>>>> RDEPEND or PDEPEND on virtual/tmpfiles ?
>>>>
>>>> No, those scripts will be removed from OpenRC. If you grep through
>>>> OpenRC, you will see that once they are removed, they are never actually
>>>> referred to by any other services that are part of OpenRC.
>>>>
>>>> The scripts will be put in opentmpfiles and that ebuild will install
>>>> them.
>>>>
>>>> William
>>>>
>>>
>>> Then we're back to the exact same issue.  opentmpfiles won't be
>>> installed if systemd is installed, so the scripts won't get installed.
>>
>>  Why not? we can just add opentmpfiles to the pdepend of systemd the
>>  same way udev-init-scripts is.
>
> Wait, so you're going to require systemd have a PDEPEND on
> opentmpfiles, so that OpenRC doesn't need to have one, when it's
> openrc that needs the script files that opentmpfiles installs??
>

I agree, this doesn't make sense.

If systemd-tmpfiles can work when systemd isn't running I could see an
argument for having systemd install init.d scripts to run it (it seems
strange, but it wouldn't be so strange if it weren't bundled).  Of
course you still run into a collision with opentmpfiles if both are
installed at once, unless they use different script, or the init.d
scripts can run either and are installed in a split package.

But, it definitely doesn't make sense to have systemd depend on opentmpfiles.

But, if systemd-tmpfiles can run without systemd I don't get why
everybody is in such a rush to basically re-implement it.  That isn't
really a problem though, if somebody wants to code another <whatever>
that isn't a problem.

-- 
Rich

Reply via email to