← Back to team overview

desktop-packages team mailing list archive

[Bug 1479431] [NEW] move systemd bits from 56-hpmud_sysfs.rules to 56-hpmud.rules

 

You have been subscribed to a public bug:

Prior to 3.15.6 both 56-hpmud_sysfs.rules & 56-hpmud.rules contained
if [ -f /usr/bin/systemctl ]; then /usr/bin/systemctl --no-block start hplip-printer@$env{BUSNUM}:$env{DEVNUM}.service

With 3.15.6 this has been removed from 56-hpmud.rules, but still remains in 56-hpmud_sysfs.rules.
AFAICT 56-hpmud_sysfs.rules, which uses deprecated SYSFS instread of ATTR, exists only for older distributions like RHEL5, where there's no systemd. So IMHO it should have been removed from 56-hpmud_sysfs.rules, not from 56-hpmud.rules.

Related:
You might also consider using "TAG+="systemd", ENV{SYSTEMD_WANTS}=..." instread of RUN+=""
see:
http://jasonwryan.com/blog/2014/01/20/udev/
http://blog.fraggod.net/2012/06/16/proper-ish-way-to-start-long-running-systemd-service-on-udev-event-device-hotplug.html
man systemd.device

With regards,
--
Jiri

** Affects: hplip (Ubuntu)
     Importance: Undecided
         Status: New

-- 
move systemd bits from 56-hpmud_sysfs.rules to 56-hpmud.rules
https://bugs.launchpad.net/bugs/1479431
You received this bug notification because you are a member of Desktop Packages, which is subscribed to hplip in Ubuntu.