summarylogtreecommitdiffstats
path: root/99-co2mon.rules
diff options
context:
space:
mode:
authorSelf-Perfection2016-02-14 13:51:55 +0300
committerSelf-Perfection2016-02-14 13:51:55 +0300
commitf35d3370674ec2e7ae5c8cbd899bf4b5b84abfd4 (patch)
tree9be7bf0981cc1b61e858d84a896e5f53796fcb4e /99-co2mon.rules
parent240fd48c8912bbf5bac733edb47ced990918a657 (diff)
downloadaur-f35d3370674ec2e7ae5c8cbd899bf4b5b84abfd4.tar.gz
Redesigned udev service activation in systemd way
Diffstat (limited to '99-co2mon.rules')
-rw-r--r--99-co2mon.rules3
1 files changed, 1 insertions, 2 deletions
diff --git a/99-co2mon.rules b/99-co2mon.rules
index 1935157d136f..4f35f72a7f9c 100644
--- a/99-co2mon.rules
+++ b/99-co2mon.rules
@@ -1,2 +1 @@
-SUBSYSTEM=="usb", ACTION=="add", ENV{PRODUCT}=="4d9/a052/*", OWNER="nobody", RUN+="/usr/bin/systemctl start co2mon.service"
-SUBSYSTEM=="usb", ACTION=="remove", ENV{PRODUCT}=="4d9/a052/*", RUN+="/usr/bin/systemctl stop co2mon.service"
+SUBSYSTEM=="usb", ACTION=="add", ENV{PRODUCT}=="4d9/a052/*", OWNER="nobody", TAG+="systemd", ENV{SYSTEMD_WANTS}="co2mon.service", ENV{SYSTEMD_ALIAS}="/dev/co2mon"