Browse Source

fix services more

master
Flutterbrony 2 months ago
parent
commit
c8dea668b9
3 changed files with 9 additions and 1 deletions
  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 View File

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


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


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


[Install] [Install]


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

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




BIN
eggnoggpi.deb View File


Loading…
Cancel
Save