+ rygel as a systemd service

+ doc references
This commit is contained in:
nicobo 2020-11-21 07:33:05 +01:00
parent 43795c3477
commit 0308a695d4
No known key found for this signature in database
GPG key ID: 2581E71C5FA5285F
3 changed files with 34 additions and 1 deletions

View file

@ -78,7 +78,11 @@ References
----------
- [PulseAudio main documentation](https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/)
- [Rygel - PulseAudio](https://wiki.gnome.org/Projects/Rygel/Pulseaudio)
- [Rygel - configuration](http://rygel-project.org/doc/latest/rygel.conf.html)
- [PulseAudio under the hood](https://gavv.github.io/articles/pulseaudio-under-the-hood/#dlna-and-chromecast)
- [github.com/BaReinhard/Super-Simple-Raspberry-Pi-Audio-Receiver-Install](https://github.com/BaReinhard/Super-Simple-Raspberry-Pi-Audio-Receiver-Install/blob/master/init.d/pulseaudio)
- [StackExchange Raspberry Pi - How to get PulseAudio running?](https://raspberrypi.stackexchange.com/a/1544)

View file

@ -158,7 +158,23 @@
# TODO Allow preventing Rygel from exporting all media by default
# TODO Start Rygel at boot
########################
# Start Rygel at boot
- name: Create rygel service file
template:
src: templates/etc/systemd/system/rygel.service
dest: /etc/systemd/system/rygel.service
- name: Register rygel service
systemd:
name: rygel
state: started
enabled: yes
#
########################
# TODO Redirect system sound to the upnp sink

View file

@ -0,0 +1,13 @@
# From https://gitlab.gnome.org/GNOME/rygel/-/blob/master/examples/service/systemd/rygel.service
[Unit]
Description=Rygel DLNA server
After=syslog.target
[Service]
User=rygel
Group=rygel
ExecStart=/usr/bin/rygel
# ExecStart=/usr/bin/wrap-dbus /usr/bin/rygel
[Install]
WantedBy=multi-user.target