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..6626d60 --- /dev/null +++ b/systemd/Makefile.am | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | edit = \ | ||
| 2 | $(SED) -r \ | ||
| 3 | -e 's|@sbindir[@]|$(sbindir)|g' \ | ||
| 4 | -e 's|@localstatedir[@]|$(localstatedir)|g' \ | ||
| 5 | < $< > $@ || rm $@ | ||
| 6 | |||
| 7 | if HAVE_SYSTEMD | ||
| 8 | |||
| 9 | systemdsystemunit_DATA = \ | ||
| 10 | usbmuxd.service | ||
| 11 | |||
| 12 | usbmuxd.service: usbmuxd.service.in | ||
| 13 | $(edit) | ||
| 14 | |||
| 15 | EXTRA_DIST = \ | ||
| 16 | usbmuxd.service.in | ||
| 17 | |||
| 18 | CLEANFILES = \ | ||
| 19 | usbmuxd.service | ||
| 20 | |||
| 21 | 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 @@ | |||
| 1 | [Unit] | ||
| 2 | Description=Socket daemon for the usbmux protocol used by Apple devices | ||
| 3 | |||
| 4 | [Service] | ||
| 5 | Type=simple | ||
| 6 | ExecStart=@sbindir@/usbmuxd -u -U usbmux -f | ||
| 7 | PIDFile=@localstatedir@/run/usbmuxd.pid | ||
