Re: [vdr] Running VDR from systemd on Raspberry Pi OS

2022-12-25 Thread Udo Richter
On 25.12.22 20:47, Marko Mäkelä wrote: However, I'd say the most clean way is to include the unmount and udiskctrl into the vdr shutdown itself, so these commands run within the vdr service after the vdr process stops. That way you just have to fire the service stop and are done. Do you mean

Re: [vdr] Running VDR from systemd on Raspberry Pi OS

2022-12-25 Thread Marko Mäkelä
Sun, Dec 25, 2022 at 01:10:51PM +0100, Udo Richter wrote: On 24.12.22 10:33, Marko Mäkelä wrote: then   sudo service vdr stop   sudo umount /video   sudo udisksctl power-off -b /dev/sda fi The first step appears to terminate the shell script, because the shell is a subprocess of VDR. So, the

Re: [vdr] Running VDR from systemd on Raspberry Pi OS

2022-12-25 Thread Udo Richter
On 24.12.22 10:33, Marko Mäkelä wrote: then   sudo service vdr stop   sudo umount /video   sudo udisksctl power-off -b /dev/sda fi The first step appears to terminate the shell script, because the shell is a subprocess of VDR. So, the storage will remain mounted and powered on. I guess that