On 2014-02-10 18:27 +0100, Colin Watson wrote:

> On Mon, Feb 10, 2014 at 06:22:14PM +0100, Sven Joachim wrote:
>> 
>> AFAICS tmpfiles.d files are processed _only_ at boot time, so there's
>> the problem of creating the directory when openssh-server is installed
>> for the first time.  While it would be nice to have
>> "systemd-tmpfiles --create sshd.conf" automagically run if systemd is
>> PID 1, this does not currently happen I'm afraid.

That was red herring, it actually _does_ happen.

> Oh.  In that case how about we do this instead, with a comment
> explaining why:
>
>   ExecStartPre=/bin/mkdir -p -m0755 /var/run/sshd

No need for that, I grabbed the binary package from incoming and found
this nice snippet in the postinst:

,----
| # Automatically added by dh_installinit
| # In case this system is running systemd, we need to ensure that all
| # necessary tmpfiles (if any) are created before starting.
| if [ -d /run/systemd/system ] ; then
|       systemd-tmpfiles --create /usr/lib/tmpfiles.d/sshd.conf >/dev/null || 
true
| fi
`----

Kudos to Michael Stapelberg who seems to be responsible for that
code. :-)

Cheers,
       Sven


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to