Ver código fonte

fix services more

master
Flutterbrony 2 meses atrás
pai
commit
c8dea668b9
3 arquivos alterados com 9 adições e 1 exclusões
  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 Ver arquivo

@@ -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 Ver arquivo

@@ -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 Ver arquivo


Carregando…
Cancelar
Salvar