systemd: add user socket unit

Copy the system socket unit to the "user" directory.

Closes https://github.com/MusicPlayerDaemon/MPD/issues/530
This commit is contained in:
Max Kellermann 2019-04-10 16:37:13 +02:00
parent b4fcbdb235
commit fe8621906d
2 changed files with 7 additions and 0 deletions

1
NEWS
View File

@ -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

View File

@ -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',