First, let me apologize for the initial poor bug report. I have since done further research and a have discovered that the /lib/udev/rules.d/39-usbmuxd.rules file in debian package usbmuxd_1.0.8+git20140527.e72f2f7-2_i386.deb supported both sysvinit and systemd. Please see contents below.

# usbmuxd ("Apple Mobile Device" muxer listening on /var/run/usbmuxd)

# Check for systemd running as pid 1
TEST=="/run/systemd/system/", ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="12[9a][0-9a-f]", ENV{USBMUX_SUPPORTED}="1", ATTR{bConfigurationValue}="0", OWNER="usbmux", TAG+="systemd", ENV{SYSTEMD_WANTS}="usbmuxd.service", RUN+="/usr/bin/pkill -x -SIGUSR2 usbmux" GOTO="usbmuxd_systemd_end"

# Legacy udev
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="12[9a][0-9a-f]", ENV{USBMUX_SUPPORTED}="1", ATTR{bConfigurationValue}="0", OWNER="usbmux", RUN+="/usr/sbin/usbmuxd -u -U usbmux"

LABEL="usbmuxd_systemd_end"

# Exit usbmuxd when the last device is removed
ACTION=="remove", SUBSYSTEM=="usb", ENV{PRODUCT}=="5ac/12[9a][0-9a-f]/*", ENV{INTERFACE}=="255/*", RUN+="/usr/sbin/usbmuxd -x"


I have tested this version of the usbmuxd.rules file in Debian based systemd and sysvinit systems. It works perfectly

* usbmuxd starts when iphone or ipad is plugged in on both systemd and sysvinit systems

* systemctl status usbmuxd command outputs usbmuxd status correctly on systemd systems.


However, in the next Debian release, TEST=="/run/systemd/system/" was removed thus breaking usbmuxd on sysvinit systems.  Please revert back to the usbmuxd_1.0.8+git20140527.e72f2f7-2_i386.deb version in order to allow usbmuxd to load on sysvinit systems again.


Thanks

Reply via email to