On Sat, 25 Jul 2026 20:49:33 +0200 Matthias Geiger <[email protected]> wrote:
On Sat, 13 Jun 2026 11:11:11 +0100 Andrew Bower <[email protected]> wrote:
> A quick update to close on my (rejected) foray into an equivalent
> solution for systemd-standalone-tmpfiles (#1139903):
> > > The answer is, just specify a value for DAEMON= as long as stop, start
> and status are all overriden (or defined by the TYPE=oneshot
> implementation) then it will do the right thing.
> > > I decided this probably wasn't needed because runlevels 2-5 are already
> sequenced after this and the scripts in runlevel S tend not to rely on
> tmpfiles so it seemed over the top.
> >

Hi,

revisiting this. Mark, does Andrews proposal sound sane? I'm way too familiar with openrc now (; Related, would it make sense to have a simliar openrc service? Create the temporary files on start, and remove them on shutdown.


Something like:

======

#!/sbin/openrc-run

name="sytemd-tmpfiles-setup"
description="create system files and directories"
command="/usr/bin/systemd-tmpfiles"

depend()
{
        need udev
}

start()
{
        /usr/bin/systemd-tmpfiles --create --remove --boot --exclude-prefix=/dev
}

--

Matthias Geiger <werdahias>

Debian Developer -- KiCad Contributor
GPG: ECBEDBB607B9B2BE

Reply via email to