Opentmpfiles: please have a look at proposed init scripts
Lorenz
lorenzo.ru.g at gmail.com
Fri Jan 10 12:57:01 GMT 2020
Hi,
In case you've missed the discussion [1][2], there is an opentmpfiles
package
already in the NEW queque.
Opentmpfiles is meant as a drop in replacement for systemd-tmpfiles.
There is a MR [3] that provides sysvinit script and the DD is ready to
merge.
Anyway, more eyes are better so, can someone have a look at the scripts?
(boring details about tmpfiles.d at the bottom)
Also, another important thing to understand:
is Devuan ok with using 'systemd-tmpfiles' from systemd package or prefers
to use opentmpfiles? the GR has a sentence about 'cooperation with
downstream' so this can be important.
As far as I understand tmpfiles[4][5] is supposed to do the following:
* Early boot: deals with files in /dev. This need to happen before udev is
started
* Boot stage (S): clean up files and dir that aren't safe to remove
during runtime.
This need to happen after filesystems are mounted; i'm not sure about nfs.
* Late boot stage (S): create files and dir for all services that drop a
tmpfile.conf
file. This need to happen before longrun services are started. I think
(S) is a
safe choice here.
* Runtime [2-5]: these script are not meant to be called here. During
packages
upgrade calling systemd-tmpfiles it's a job for dh_systemd or some other
dh_
that doesn't exists yet.
* Shutdown: it's not clear to me if systemd is doing some cleanup here, see
opentmpfiles-clean script
Regards,
Lorenzo
[1] https://lists.debian.org/debian-devel/2020/01/msg00032.html
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=947847
[3] https://salsa.debian.org/debian/opentmpfiles/merge_requests/1
[4] https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html
[5]
https://www.freedesktop.org/software/systemd/man/systemd-tmpfiles-setup.service.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.chiark.greenend.org.uk/pipermail/debian-init-diversity/attachments/20200110/0abb878b/attachment.html>
More information about the Debian-init-diversity
mailing list