Use /bin/ as the call path for systemctl. For some reason Debian derived distros do not have /usr/bin/systemctl, only /bin/systemctl. Other distros seem to have both paths. Also invoke PROGRAM using == which matches what the udev test suite does. Fixes: d35e5c4f7169 ("srp_daemon.service: Add support for hot-plugging") Signed-off-by: Jason Gunthorpe <jgunthorpe@xxxxxxxxxxxxxxxxxxxx> --- srp_daemon/srp_daemon.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srp_daemon/srp_daemon.rules b/srp_daemon/srp_daemon.rules index 6780d5421de7b4..4cfeabc762da2a 100644 --- a/srp_daemon/srp_daemon.rules +++ b/srp_daemon/srp_daemon.rules @@ -1 +1 @@ -ACTION=="add", SUBSYSTEM=="infiniband_mad", KERNEL=="*umad*", PROGRAM:="/usr/bin/systemctl show srp_daemon -p ActiveState", RESULT=="ActiveState=active", ENV{SYSTEMD_WANTS}+="srp_daemon_port@$attr{ibdev}:$attr{port}.service" +ACTION=="add", SUBSYSTEM=="infiniband_mad", KERNEL=="*umad*", PROGRAM=="/bin/systemctl show srp_daemon -p ActiveState", RESULT=="ActiveState=active", ENV{SYSTEMD_WANTS}+="srp_daemon_port@$attr{ibdev}:$attr{port}.service" -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html