Pārlūkot izejas kodu

fix services more

master
Flutterbrony pirms 2 mēnešiem
vecāks
revīzija
c8dea668b9
3 mainītis faili ar 9 papildinājumiem un 1 dzēšanām
  1. +4
    -1
      debian/eggnoggpi/etc/systemd/system/eggnoggpi.service
  2. +5
    -0
      debian/eggnoggpi/etc/systemd/system/mpv.service
  3. Binārs
      eggnoggpi.deb

+ 4
- 1
debian/eggnoggpi/etc/systemd/system/eggnoggpi.service Parādīt failu

@@ -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 Parādīt failu

@@ -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ārs
eggnoggpi.deb Parādīt failu


Notiek ielāde…
Atcelt
Saglabāt