Bug#1051441: systemd: user unit is no longer started after upgrade to bookworm

Luca Boccassi bluca at debian.org
Sun May 26 14:41:57 BST 2024


Control: tags -1 wontfix
Control: tags -1 -moreinfo
Control: close -1

On Fri, 8 Sep 2023 15:59:04 +0200 Vincent Lefevre <vincent at vinc17.net>
wrote:
> On 2023-09-08 14:21:49 +0200, Michael Biebl wrote:
> > If you have a custom mount setup, you should be able to tweak those
unit
> > files to your needs e.g. via RequiresMountsFor=
> 
> I had tried that in the past for apache2, but without any effect.
> I suppose that the goal of the "RequiresMountsFor" seems to ask
> for a mount whose goal is to make some path accessible, not to
> wait for this path to actually be accessible. So this is useless
> as the mount is automatic.
> 
> So, I think that the solution would be to modify user at .service
> in order to wait for the homedir of the user to be available.
> But IMHO, this should be done by default in systemd (on most
> configurations, this will be some kind of no-op).
> 
> There might be the possibility to have something like
> 
> ExecStartPre=/bin/sh -c 'while [ ! -d $HOME ]; do sleep 5; done'
> 
> (ideally something using inotify when possible).

This is a broken local setup, hence closing. You have all the tools at
your disposal to order manual mounts and services, by adding drop-ins
everywhere that you need them, but we are most certainly not going to
ship them upstream or downstream. These settings can be highly
customized locally for exactly these use cases.

-- 
Kind regards,
Luca Boccassi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20240526/aef4cb29/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list