On Thu, 28 Mar 2013 18:23:03 +1100
Robbie Smith <zoqae...@gmail.com> wrote:

> TL;DR: More toying with mobile broadband and systemd; would like help 
> automatically stopping service depending on device availability.
> 
> [...]
> 
> What I cannot figure out how to do is automatically stop the service if 
> the device is unplugged, similar to how ifplugd works for wired ethernet 
> interfaces.

How about "BindsTo=" from man 5 systemd.unit? For example,
"BindsTo=sys-subsystem-net-devices-wap.device".

-- 
Leonid Isaev
GnuPG key: 0x164B5A6D
Fingerprint: C0DF 20D0 C075 C3F1 E1BE  775A A7AE F6CB 164B 5A6D

Attachment: signature.asc
Description: PGP signature

Reply via email to