Open andrewn opened 6 years ago
Good point about running a root
. It always was because it's being started by systemd
and no other user is specified but this isn't ideal.
Also, I've just tested this some more and it seems it only intermittently fixes the issue. So I think let's hold off on merging until I've found a consistent fix. 😢
After reboot the SPI interface on the Pi seems to be enabled yet no messages arrive from the card reader. The workaround seems to be disabling SPI using
raspi-config
and enabling it again before starting the service.I tried doing this using a
ExecStartPre=
flag in systemd but this didn't work.