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 @@ | |||
1 | edit = \ | ||
2 | $(SED) -r \ | ||
3 | -e 's|@sbindir[@]|$(sbindir)|g' \ | ||
4 | -e 's|@runstatedir[@]|$(runstatedir)|g' \ | ||
5 | < $< > $@ || rm $@ | ||
6 | |||
7 | if WANT_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..3a27aee --- /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 | Documentation=man:usbmuxd(8) | ||
4 | |||
5 | [Service] | ||
6 | ExecStart=@sbindir@/usbmuxd --user usbmux --systemd | ||
7 | PIDFile=@runstatedir@/usbmuxd.pid | ||