summaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'systemd')
-rw-r--r--systemd/Makefile.am21
-rw-r--r--systemd/usbmuxd.service.in7
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 @@
1edit = \
2 $(SED) -r \
3 -e 's|@sbindir[@]|$(sbindir)|g' \
4 -e 's|@runstatedir[@]|$(runstatedir)|g' \
5 < $< > $@ || rm $@
6
7if WANT_SYSTEMD
8
9systemdsystemunit_DATA = \
10 usbmuxd.service
11
12usbmuxd.service: usbmuxd.service.in
13 $(edit)
14
15EXTRA_DIST = \
16 usbmuxd.service.in
17
18CLEANFILES = \
19 usbmuxd.service
20
21endif
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]
2Description=Socket daemon for the usbmux protocol used by Apple devices
3Documentation=man:usbmuxd(8)
4
5[Service]
6ExecStart=@sbindir@/usbmuxd --user usbmux --systemd
7PIDFile=@runstatedir@/usbmuxd.pid