diff options
author | Martin Szulecki | 2014-07-26 17:08:41 +0200 |
---|---|---|
committer | Martin Szulecki | 2014-09-19 18:54:02 +0200 |
commit | 577538f213cd7132c7450db393fd6fef6bb46b5a (patch) | |
tree | 74a21364696e0e2f375613e1c45006d5e6779dc0 /systemd | |
parent | b7976d2a53b27ec9c42f81a22e91704dbcc5fb53 (diff) | |
download | usbmuxd-577538f213cd7132c7450db393fd6fef6bb46b5a.tar.gz usbmuxd-577538f213cd7132c7450db393fd6fef6bb46b5a.tar.bz2 |
Add systemd activation autofoo with fallback for udev and manual activation
Diffstat (limited to 'systemd')
-rw-r--r-- | systemd/Makefile.am | 21 | ||||
-rw-r--r-- | systemd/usbmuxd.service.in | 7 |
2 files changed, 28 insertions, 0 deletions
diff --git a/systemd/Makefile.am b/systemd/Makefile.am new file mode 100644 index 0000000..6626d60 --- /dev/null +++ b/systemd/Makefile.am @@ -0,0 +1,21 @@ +edit = \ + $(SED) -r \ + -e 's|@sbindir[@]|$(sbindir)|g' \ + -e 's|@localstatedir[@]|$(localstatedir)|g' \ + < $< > $@ || rm $@ + +if HAVE_SYSTEMD + +systemdsystemunit_DATA = \ + usbmuxd.service + +usbmuxd.service: usbmuxd.service.in + $(edit) + +EXTRA_DIST = \ + usbmuxd.service.in + +CLEANFILES = \ + usbmuxd.service + +endif diff --git a/systemd/usbmuxd.service.in b/systemd/usbmuxd.service.in new file mode 100644 index 0000000..761b39a --- /dev/null +++ b/systemd/usbmuxd.service.in @@ -0,0 +1,7 @@ +[Unit] +Description=Socket daemon for the usbmux protocol used by Apple devices + +[Service] +Type=simple +ExecStart=@sbindir@/usbmuxd -u -U usbmux -f +PIDFile=@localstatedir@/run/usbmuxd.pid |