Commit c42f6907 authored by Alex Suykov's avatar Alex Suykov Committed by Thomas Petazzoni
Browse files

pulseaudio: systemd support



[Thomas:
 - use relative path for the service symlink
 - slightly adjust the service description]

Signed-off-by: default avatarAlex Suykov <alex.suykov@gmail.com>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent 920b50b7
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -123,6 +123,14 @@ define PULSEAUDIO_INSTALL_INIT_SYSV
		$(TARGET_DIR)/etc/init.d/S50pulseaudio
endef

define PULSEAUDIO_INSTALL_INIT_SYSTEMD
	$(INSTALL) -D -m 644 package/pulseaudio/pulseaudio.service \
		$(TARGET_DIR)/usr/lib/systemd/system/pulseaudio.service
	mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
	ln -sf ../../../../usr/lib/systemd/system/pulseaudio.service \
		$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/pulseaudio.service
endef

endif

$(eval $(autotools-package))
+11 −0
Original line number Diff line number Diff line
[Unit]
Description=PulseAudio Sound System
After=syslog.target

[Service]
UMask=077
ExecStart=/usr/bin/pulseaudio --system --daemonize=no
Restart=always

[Install]
WantedBy=multi-user.target