diff options
author | Nikias Bassen | 2009-04-08 01:08:37 +0200 |
---|---|---|
committer | Nikias Bassen | 2009-04-08 01:08:37 +0200 |
commit | 466ff3c456383456630ce9d67abae991566c158e (patch) | |
tree | 5700fbc01e1fcde9bb55a5dfe97e281deb2471ab /85-usbmuxd.rules | |
parent | 0080c074ba46c0a4eae6561f40c6b4c749ac0ab1 (diff) | |
download | usbmuxd-466ff3c456383456630ce9d67abae991566c158e.tar.gz usbmuxd-466ff3c456383456630ce9d67abae991566c158e.tar.bz2 |
Implemented lockfile stuff to prevent multiple running instances.
Implemented daemonizing, use -f to run in foreground.
Implemented logging to syslog (or to std{out,err} when running in foreground).
Modified the udev rules file (removed --pidfile etc.).
Diffstat (limited to '85-usbmuxd.rules')
-rw-r--r-- | 85-usbmuxd.rules | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/85-usbmuxd.rules b/85-usbmuxd.rules index 90d49ea..69ddef8 100644 --- a/85-usbmuxd.rules +++ b/85-usbmuxd.rules @@ -30,8 +30,8 @@ ACTION=="add", SUBSYSTEM=="usb_endpoint", KERNEL=="usbdev*_ep04", SYMLINK+="usbm ACTION=="add", SUBSYSTEM=="usb_endpoint", KERNEL=="usbdev*_ep85", SYMLINK+="usbmux/out" # Start and stop 'usbmuxd' as required. -ACTION=="add", SUBSYSTEM=="usb_endpoint", KERNEL=="usbdev*_ep85", RUN+="/sbin/start-stop-daemon --start --oknodo --background --make-pidfile --pidfile /var/run/usbmuxd.pid --exec /usr/local/sbin/usbmuxd" -ACTION=="remove", SUBSYSTEM=="usb_endpoint", KERNEL=="usbdev*_ep85", RUN+="/sbin/start-stop-daemon --stop --signal 2 --pidfile /var/run/usbmuxd.pid --exec /usr/local/sbin/usbmuxd" +ACTION=="add", SUBSYSTEM=="usb_endpoint", KERNEL=="usbdev*_ep85", RUN+="/sbin/start-stop-daemon --start --oknodo --exec /usr/local/sbin/usbmuxd" +ACTION=="remove", SUBSYSTEM=="usb_endpoint", KERNEL=="usbdev*_ep85", RUN+="/sbin/start-stop-daemon --stop --signal 2 --exec /usr/local/sbin/usbmuxd" # skip LABEL="usbmuxd_rules_end" |