Skip to content

Use Requires and After to wait for device #116

@Jalle19

Description

@Jalle19

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/mbusd@.service.d/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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions