Re: [systemd-devel] soft-reboot and service templates

2024-06-10 Thread Lennart Poettering
On Mi, 05.06.24 14:58, Luca Boccassi (luca.bocca...@gmail.com) wrote: > On Wed, 5 Jun 2024 at 14:45, Thorsten Kukuk wrote: > > > > Hi, > > > > while playing with soft-reboot and services surviving this: > > A standard service file works, but if I use a service template (e.g. > > test@.service), t

Re: [systemd-devel] soft-reboot and service templates

2024-06-07 Thread Luca Boccassi
On Fri, 7 Jun 2024 at 13:10, Thorsten Kukuk wrote: > > On Fri, Jun 7, 2024 at 12:43 PM Luca Boccassi wrote: > > > /run is expected though - if you want that, you need to bind mount it > > explicitly. You normally don't want all of it, and the default > > portable profile only picks the journal an

Re: [systemd-devel] soft-reboot and service templates

2024-06-07 Thread Thorsten Kukuk
On Fri, Jun 7, 2024 at 12:43 PM Luca Boccassi wrote: > /run is expected though - if you want that, you need to bind mount it > explicitly. You normally don't want all of it, and the default > portable profile only picks the journal and dbus sockets and a couple > of other things, which is better:

Re: [systemd-devel] soft-reboot and service templates

2024-06-07 Thread Luca Boccassi
On Fri, 7 Jun 2024 at 08:17, Thorsten Kukuk wrote: > > On Thu, Jun 6, 2024 at 10:45 PM Luca Boccassi wrote: > > > > On Thu, 6 Jun 2024 at 09:15, Thorsten Kukuk wrote: > > > > The default mounts of portable images goes lost during soft-reboot, too. > > > If you explicitly add them to the service

Re: [systemd-devel] soft-reboot and service templates

2024-06-07 Thread Thorsten Kukuk
On Thu, Jun 6, 2024 at 10:45 PM Luca Boccassi wrote: > > On Thu, 6 Jun 2024 at 09:15, Thorsten Kukuk wrote: > > The default mounts of portable images goes lost during soft-reboot, too. > > If you explicitly add them to the service file (e.g. > > BindReadOnlyPaths=/run) they survive. Bug report i

Re: [systemd-devel] soft-reboot and service templates

2024-06-07 Thread Thorsten Kukuk
On Thu, Jun 6, 2024 at 10:53 PM Luca Boccassi wrote: > > On Thu, 6 Jun 2024 at 09:15, Thorsten Kukuk wrote: > > I tried that, but no idea what I'm doing wrong, the values there seem > > to get ignored. systemctl show only displays the old values. > > It works for me in latest main: For me now,

Re: [systemd-devel] soft-reboot and service templates

2024-06-06 Thread Luca Boccassi
On Thu, 6 Jun 2024 at 09:15, Thorsten Kukuk wrote: > > On Wed, Jun 5, 2024 at 3:58 PM Luca Boccassi wrote: > > > > On Wed, 5 Jun 2024 at 14:45, Thorsten Kukuk wrote: > > > > > > Hi, > > > > > > while playing with soft-reboot and services surviving this: > > > A standard service file works, but i

Re: [systemd-devel] soft-reboot and service templates

2024-06-06 Thread Luca Boccassi
On Thu, 6 Jun 2024 at 09:15, Thorsten Kukuk wrote: > > On Wed, Jun 5, 2024 at 3:58 PM Luca Boccassi wrote: > > > > On Wed, 5 Jun 2024 at 14:45, Thorsten Kukuk wrote: > > > > > > Hi, > > > > > > while playing with soft-reboot and services surviving this: > > > A standard service file works, but i

Re: [systemd-devel] soft-reboot and service templates

2024-06-06 Thread Thorsten Kukuk
On Wed, Jun 5, 2024 at 3:58 PM Luca Boccassi wrote: > > On Wed, 5 Jun 2024 at 14:45, Thorsten Kukuk wrote: > > > > Hi, > > > > while playing with soft-reboot and services surviving this: > > A standard service file works, but if I use a service template (e.g. > > test@.service), the service get's

Re: [systemd-devel] soft-reboot and service templates

2024-06-05 Thread Luca Boccassi
On Wed, 5 Jun 2024 at 14:45, Thorsten Kukuk wrote: > > Hi, > > while playing with soft-reboot and services surviving this: > A standard service file works, but if I use a service template (e.g. > test@.service), the service get's stopped during soft-reboot. > Reasons is: > -Slice=system.slice > +S