| 1 |
# Used when systemd is not available. Runs 'service stapshd reload' when a port |
| 2 |
# gets hotplugged/unplugged. This will create stapshd-daemon instances for new |
| 3 |
# ports and kill stapshd-daemon instances for no longer existing ports. |
| 4 |
# Should end up in /lib/udev/rules.d if it exists (RHEL6) or /etc/udev/rules.d |
| 5 |
# otherwise (RHEL5). NB: RHEL5 udev doesn't know ATTR{name}, so it will fire |
| 6 |
# no matter the actual name of the port, which shouldn't be an issue. |
| 7 |
# Docs: systemd.device(5), udev(7) |
| 8 |
|
| 9 |
SUBSYSTEM=="virtio-ports", ATTR{name}=="org.systemtap.stapsh.[0-9]*", \ |
| 10 |
RUN+="/sbin/service stapshd reload" |
| 11 |
|