Initial commit
This commit is contained in:
commit
b78183fa6e
10
README.md
Normal file
10
README.md
Normal file
@ -0,0 +1,10 @@
|
||||
# pulseaudio-dlna Systemd service unit
|
||||
|
||||
Just a simple user service unit for [pulseaudio-dlna](https://github.com/masmu/pulseaudio-dlna).
|
||||
|
||||
### Files
|
||||
* `pulseaudio-dlna.service` provides a service for pulseaudio-dlna.
|
||||
#### Installation
|
||||
* `install.sh` copies above Systemd unit to user's adequate directory and enables the service.
|
||||
|
||||
### TODO
|
12
install.sh
Executable file
12
install.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
echo "Copying Systemd units to user's directory..."
|
||||
cp $(dirname "$0")/pulseaudio-dlna.service $HOME/.config/systemd/user/
|
||||
|
||||
echo "Reloading Systemd's user runtime..."
|
||||
systemctl --user daemon-reload
|
||||
echo "Enabling service..."
|
||||
systemctl --user enable pulseaudio-dlna.service
|
||||
|
||||
echo "Finished install. Exiting..."
|
||||
exit 0
|
21
pulseaudio-dlna.service
Normal file
21
pulseaudio-dlna.service
Normal file
@ -0,0 +1,21 @@
|
||||
# This file is to be placed in /home/alex/.sync
|
||||
# A symlink should then be created at ~/.config/systemd/user/pulseaudio-dlna.service
|
||||
# This is just a service file for pulseaudio-dlna, which is run in user session
|
||||
# It can be enabled (in user mode) in order to see DLNA renderers in audio devices
|
||||
|
||||
[Unit]
|
||||
Description=DLNA renderers support for PulseAudio
|
||||
After=pulseaudio.service pulseaudio.socket
|
||||
#Requisite=pulseaudio.service
|
||||
ConditionUser=!root
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
# I'd rather have used herebefore Requisite statement, but pulseaudio is ativated by its socket, and Requisite doesn't
|
||||
# wait long enough...
|
||||
ExecStartPre=/usr/bin/sleep 10
|
||||
ExecStart=/usr/bin/pulseaudio-dlna
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
Loading…
Reference in New Issue
Block a user