Re: [systemd-devel] Running a service *just* before unmounting filesystems

2018-06-11 Thread Hans de Goede
Hi, On 11-06-18 17:48, Jérémy Rosen wrote: We solve a problem which is kinda similar in the embedded world when we do A/B update I'll describe how we do it so you see if this can help * Have a single "last boot went wrong" flag When grub starts * if the flag is set, show the boot menu (or a t

Re: [systemd-devel] Running a service *just* before unmounting filesystems

2018-06-11 Thread Jérémy Rosen
We solve a problem which is kinda similar in the embedded world when we do A/B update I'll describe how we do it so you see if this can help * Have a single "last boot went wrong" flag When grub starts * if the flag is set, show the boot menu (or a timer) * if the flag is not set   * skip the m

Re: [systemd-devel] Running a service *just* before unmounting filesystems

2018-06-11 Thread Hans de Goede
Hi, On 11-06-18 16:37, Lennart Poettering wrote: On Mo, 11.06.18 15:37, Hans de Goede ([email protected]) wrote: Uurks. Quite frankly, it appears strange to me to delay this for this long. I mean we reworked most code that delayed worked to shutdown like this these days to happen as early as

Re: [systemd-devel] Option to restart/start a service using sysrq magic key

2018-06-11 Thread Lennart Poettering
On Mo, 11.06.18 18:13, P.R.Dinesh ([email protected]) wrote: > Is it possible to restart/start a service using sysrq magic key. That's a kernel concept, systemd is userspace software. Thus we can't really hook into sysrq handling. Sory. > In my setup we have a getty service which controls the

Re: [systemd-devel] Running a service *just* before unmounting filesystems

2018-06-11 Thread Lennart Poettering
On Mo, 11.06.18 15:37, Hans de Goede ([email protected]) wrote: > > Uurks. Quite frankly, it appears strange to me to delay this for this > > long. I mean we reworked most code that delayed worked to shutdown > > like this these days to happen as early as possible to make sure we > > don't lose

Re: [systemd-devel] Running a service *just* before unmounting filesystems

2018-06-11 Thread Hans de Goede
Hi, On 11-06-18 13:31, Lennart Poettering wrote: On Mo, 11.06.18 12:48, Hans de Goede ([email protected]) wrote: Hi All, So as you may have heard, I'm working on hiding the grub-menu by default on single OS Fedora Workstation. Part of the plan here is to detect if a previous boot was succe

[systemd-devel] Option to restart/start a service using sysrq magic key

2018-06-11 Thread P.R.Dinesh
Is it possible to restart/start a service using sysrq magic key. In my setup we have a getty service which controls the console. For some reason this gets stopped. Once the getty service is stopped the console connection to the device is hung. The only way to recover is to reboot the device. I

Re: [systemd-devel] Running a service *just* before unmounting filesystems

2018-06-11 Thread Lennart Poettering
On Mo, 11.06.18 12:48, Hans de Goede ([email protected]) wrote: > Hi All, > > So as you may have heard, I'm working on hiding the grub-menu > by default on single OS Fedora Workstation. Part of the plan > here is to detect if a previous boot was successful and > cleanly shutdown the machine an

[systemd-devel] Running a service *just* before unmounting filesystems

2018-06-11 Thread Hans de Goede
Hi All, So as you may have heard, I'm working on hiding the grub-menu by default on single OS Fedora Workstation. Part of the plan here is to detect if a previous boot was successful and cleanly shutdown the machine and show the menu (not hide the menu) if the previous boot has failed to set eit