diff options
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..1d40c25 --- /dev/null +++ b/systemd/Makefile.am @@ -0,0 +1,21 @@ +edit = \ + $(SED) -r \ + -e 's|@sbindir[@]|$(sbindir)|g' \ + -e 's|@runstatedir[@]|$(runstatedir)|g' \ + < $< > $@ || rm $@ + +if WANT_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..3a27aee --- /dev/null +++ b/systemd/usbmuxd.service.in @@ -0,0 +1,7 @@ +[Unit] +Description=Socket daemon for the usbmux protocol used by Apple devices +Documentation=man:usbmuxd(8) + +[Service] +ExecStart=@sbindir@/usbmuxd --user usbmux --systemd +PIDFile=@runstatedir@/usbmuxd.pid |