Sfoglia il codice sorgente

fix services more

master
Flutterbrony 2 mesi fa
parent
commit
c8dea668b9
3 ha cambiato i file con 9 aggiunte e 1 eliminazioni
  1. +4
    -1
      debian/eggnoggpi/etc/systemd/system/eggnoggpi.service
  2. +5
    -0
      debian/eggnoggpi/etc/systemd/system/mpv.service
  3. BIN
      eggnoggpi.deb

+ 4
- 1
debian/eggnoggpi/etc/systemd/system/eggnoggpi.service Vedi File

@@ -1,6 +1,6 @@
[Unit]
Description=Eggnogg Plus on a Raspberry Pi
Requires=mpv.service
Require=sound.target
After=mpv.service

[Service]
@@ -9,7 +9,10 @@ User=pi
Group=pi
EnvironmentFile=/etc/default/eggnogg

Restart=always
RestartSec=5s
WorkingDirectory=/usr/local/games/eggnoggplus-linux
ExecStartPre=/usr/local/bin/pulseaudio.sh
ExecStart=/usr/local/games/eggnoggplus-linux/eggnoggplus

[Install]


+ 5
- 0
debian/eggnoggpi/etc/systemd/system/mpv.service Vedi File

@@ -1,5 +1,7 @@
[Unit]
Description=mpv audio service
Require=sound.target
After=sound.target

[Service]
Restart=always
@@ -7,6 +9,9 @@ User=pi
Group=pi
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
ExecStart=/usr/bin/mpv --loop=inf --no-audio-display --volume=80 /home/pi/music.ogg



BIN
eggnoggpi.deb Vedi File


Caricamento…
Annulla
Salva