|
@@ -1,5 +1,7 @@ |
|
|
[Unit] |
|
|
[Unit] |
|
|
Description=mpv audio service |
|
|
Description=mpv audio service |
|
|
|
|
|
Require=sound.target |
|
|
|
|
|
After=sound.target |
|
|
|
|
|
|
|
|
[Service] |
|
|
[Service] |
|
|
Restart=always |
|
|
Restart=always |
|
@@ -7,6 +9,9 @@ User=pi |
|
|
Group=pi |
|
|
Group=pi |
|
|
EnvironmentFile=/etc/default/eggnogg |
|
|
EnvironmentFile=/etc/default/eggnogg |
|
|
|
|
|
|
|
|
|
|
|
Restart=always |
|
|
|
|
|
RestartSec=5s |
|
|
|
|
|
#ExecStartPre=/usr/local/bin/pulseaudio.sh && /usr/bin/mpv --no-audio-display /home/pi/intro.ogg |
|
|
ExecStartPre=/usr/bin/mpv --no-audio-display /home/pi/intro.ogg |
|
|
ExecStartPre=/usr/bin/mpv --no-audio-display /home/pi/intro.ogg |
|
|
ExecStart=/usr/bin/mpv --loop=inf --no-audio-display --volume=80 /home/pi/music.ogg |
|
|
ExecStart=/usr/bin/mpv --loop=inf --no-audio-display --volume=80 /home/pi/music.ogg |
|
|
|
|
|
|
|
|