Hello Tino,
finally I think I found a solution: I would crate a second systemd unit
template coping [email protected] to [email protected] and then
I'll remove from the latter the BindsTo= and After= lines, replacing
them with a dependency on the iaxmodem.service unit.

This means that "real" devices, the one managed by udev, like ttyS0 or
ttyUSB3 will get a normal [email protected] unit that depends on the
device; while the "virtual" device like ttyIAX0 will only get a
dependency on the iaxmodem service and will be coupled with a systemd
path unit that watches the IAX device name.

Bye,
Giuseppe

Reply via email to