summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-04-10 16:37:13 +0200
committerMax Kellermann <max@musicpd.org>2019-04-10 16:37:13 +0200
commitfe8621906d077344dc5439d5fc786a26a058c17e (patch)
tree8b12f6ac6fa7b6f902a0510087748661414bb67d /systemd
parentb4fcbdb235881e71ff59a36fdcb05a984d718a65 (diff)
systemd: add user socket unit
Copy the system socket unit to the "user" directory. Closes https://github.com/MusicPlayerDaemon/MPD/issues/530
Diffstat (limited to 'systemd')
-rw-r--r--systemd/user/meson.build6
1 files changed, 6 insertions, 0 deletions
diff --git a/systemd/user/meson.build b/systemd/user/meson.build
index b1e94b14f..fdce339e4 100644
--- a/systemd/user/meson.build
+++ b/systemd/user/meson.build
@@ -3,6 +3,12 @@ if systemd_user_unit_dir == ''
systemd_user_unit_dir = join_paths(get_option('prefix'), 'lib', 'systemd', 'user')
endif
+# copy the system socket unit to the "user" directory
+install_data(
+ join_paths('..', 'system', 'mpd.socket'),
+ install_dir: systemd_user_unit_dir,
+)
+
configure_file(
input: 'mpd.service.in',
output: 'mpd.service',