From fe8621906d077344dc5439d5fc786a26a058c17e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 10 Apr 2019 16:37:13 +0200 Subject: [PATCH] systemd: add user socket unit Copy the system socket unit to the "user" directory. Closes https://github.com/MusicPlayerDaemon/MPD/issues/530 --- NEWS | 1 + systemd/user/meson.build | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/NEWS b/NEWS index 83362a28d..e0d567722 100644 --- a/NEWS +++ b/NEWS @@ -4,6 +4,7 @@ ver 0.21.8 (not yet released) - httpd: fix use-after-free bug * fix Bonjour bug * fix build failure with GCC 9 +* systemd: add user socket unit ver 0.21.7 (2019/04/03) * input 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',