On 16/11/16 09:19 PM, Mike Gilbert wrote:
> On Wed, Nov 16, 2016 at 8:41 PM, Rich Freeman <[email protected]> wrote:
>> On Wed, Nov 16, 2016 at 6:45 PM, Ian Stakenvicius <[email protected]> wrote:
>>> On 16/11/16 06:25 PM, William Hubbs wrote:
>>>> On Wed, Nov 16, 2016 at 06:19:28PM -0500, Ian Stakenvicius wrote:
>>>>> > [...]
>>>>> 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.
> 
> Either of these options seem reasonable to me.
> 
> It's possible (though unlikely) that someone would install systemd
> simply for unadulterated udev and tmpfiles support. I'm happy to
> install init scripts to support that.
> 

Unfortunately, I think the best means of handling this would still be
an init-scripts package the same as we do for udev, that both systemd
and opentmpfiles would depend on -- the sole reason being, that this
package could easily the appropriate scripts to the boot and sysinit
runlevels when installed, and that may prove difficult to sort out via
openrc virtual services.

tmpfiles.setup is easy enough to do via 'need' or 'want' in depend
sections, but tmpfiles.dev has to have a 'before dev', which means
sysinit, and I'm not sure if a service in 'default' can trigger
something to be started in sysinit via a 'need' or 'want' dep.


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to