[systemd-devel] soft-reboot and service templates

Luca Boccassi luca.boccassi at gmail.com
Thu Jun 6 20:45:06 UTC 2024


On Thu, 6 Jun 2024 at 09:15, Thorsten Kukuk <kukuk at suse.com> wrote:
>
> On Wed, Jun 5, 2024 at 3:58 PM Luca Boccassi <luca.boccassi at gmail.com> wrote:
> >
> > On Wed, 5 Jun 2024 at 14:45, Thorsten Kukuk <kukuk at suse.com> 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 at .service), the service get's stopped during soft-reboot.
> > > Reasons is:
> > > -Slice=system.slice
> > > +Slice=system-test.slice
>
> > Yeah we haven't tested this scenario at all -
>
> Looks like there are even  more scenarios not really tested.
>
> 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 is still on my TODO
> list.

What do you mean by default mounts here? Everything is defined in
either the unit or the profile, apart from proc+sys+dev


More information about the systemd-devel mailing list