Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Requires and After to wait for device #116

Open
Jalle19 opened this issue Nov 27, 2024 · 0 comments
Open

Use Requires and After to wait for device #116

Jalle19 opened this issue Nov 27, 2024 · 0 comments

Comments

@Jalle19
Copy link

Jalle19 commented Nov 27, 2024

On a Raspberry Pi I configured to act as a gateway, the mbusd@ttyUSB0 service ended up starting way too early in the boot process, before the device was available.

I ran systemctl edit mbusd@ttyUSB0 and added this:

$ cat /etc/systemd/system/[email protected]/override.conf 
[Unit]
Requires=dev-ttyUSB0.device
After=dev-ttyUSB0.device

Now it correctly waits until the device is available.

I think this would be a good addition to the systemd service, since it's already parametrized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant