On 4/25/19 5:23 PM, Michał Górny wrote:
>>
>> What's wrong? You only need the effect of tmpfiles_process() if you're
>> running systemd or OpenRC. If the user is running SysV-init and if the
>> package also installs a SysV-init script, then that init script is going
>> to have to create any temporary directories it needs, because SysV-init
>> doesn't know anything about tmpfiles.
>>
> 
> This isn't about init scripts.  This is about arbitrary directories that
> need to be created at runtime and potentially cleaned up or recreated
> after reboot, such as cache directories.
> 

It's very much about init scripts. We have at least five service
managers in the tree,

  * sys-apps/openrc
  * sys-apps/systemd
  * sys-apps/sysvinit
  * sys-process/runit
  * sys-process/daemontools(-encore)

And the only reason we would need a transient directory created and/or
cleaned-up is because one of those service managers is going to start a
program that needs it. Two of them can use the tmpfiles mechanism, but
the others must handle it on their own: in particular, they don't need
tmpfiles_process() to do anything.

Reply via email to