File brltty-5.3.1-udev-systemd.patch of Package brltty.38658
diff -ur brltty-5.3.1.orig/Autostart/Udev/udev.rules brltty-5.3.1/Autostart/Udev/udev.rules
--- brltty-5.3.1.orig/Autostart/Udev/udev.rules 2015-12-19 14:24:27.000000000 -0600
+++ brltty-5.3.1/Autostart/Udev/udev.rules 2016-09-15 09:57:31.875481947 -0500
@@ -435,6 +435,7 @@
GOTO="brltty_run"
LABEL="brltty_run"
+TEST=="/sys/fs/cgroup/systemd", GOTO="brltty_systemd"
ENV{BRLTTY_PID_FILE}="/var/run/brltty.$kernel.pid"
ACTION=="add", GOTO="brltty_add"
ACTION=="remove", GOTO="brltty_remove"
@@ -449,4 +450,7 @@
RUN+="/bin/sh -c 'kill -TERM `cat $env{BRLTTY_PID_FILE}`'"
GOTO="brltty_end"
+LABEL="brltty_systemd"
+ACTION!="add", GOTO="brltty_end"
+TAG+="systemd", ENV{SYSTEMD_WANTS}+="brltty@$env{DEVNAME}.service"
LABEL="brltty_end"