Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4833

Advanced users • Re: systemd service ran fine on CM4 doesn't work on CM5

$
0
0
While not solving your problem, can't you use the /dev/serial0 alias to remove the need to detect which platform you are on?
That's a good shout, I hadn't spotted that it was an alias. Is it guaranteed to exist and be correct?
It may also be worth adding the following to the [Unit] section of your systemd unit file:

Code:

[Unit]BindsTo=dev-serial0.deviceAfter=dev-serial0.device
This will ensure that the serial device is present/available before your service is started.

There's a good real-world example of this in /lib/systemd/system/serial-getty@.service
Ah I was definitely missing that, thanks again - this is one of those things that worked so I never went back to look at it...

I can't find if there's any way of saying it needs uinput, or if that would even need to be specified?

Statistics: Posted by John_U — Mon Dec 09, 2024 2:45 pm



Viewing all articles
Browse latest Browse all 4833

Trending Articles