Skip to main content
add code indent
Source Link
Darth Vader
  • 4.2k
  • 24
  • 45
  • 69

This service file worked for me... noteNote how it starts after sound.targetAfter=sound.target

[Unit]
Description=FireHouse Game
After=sound.target

[Service]
Type=simple
Environment="DISPLAY=:0"
Environment="XAUTHORITY=/home/pi/.Xauthority"
ExecStart=/usr/bin/python3 /home/pi/FireGame/fire_game.py
Restart=on-abort
KillMode=process
SendSIGHUP=nos

[Install]
WantedBy=graphical.target

This service file worked for me... note how it starts after sound.target

[Unit]
Description=FireHouse Game
After=sound.target

[Service]
Type=simple
Environment="DISPLAY=:0"
Environment="XAUTHORITY=/home/pi/.Xauthority"
ExecStart=/usr/bin/python3 /home/pi/FireGame/fire_game.py
Restart=on-abort
KillMode=process
SendSIGHUP=nos

[Install]
WantedBy=graphical.target

This service file worked for me... Note how it starts after After=sound.target

[Unit]
Description=FireHouse Game
After=sound.target

[Service]
Type=simple
Environment="DISPLAY=:0"
Environment="XAUTHORITY=/home/pi/.Xauthority"
ExecStart=/usr/bin/python3 /home/pi/FireGame/fire_game.py
Restart=on-abort
KillMode=process
SendSIGHUP=nos

[Install]
WantedBy=graphical.target

This service file worked for me... note how it starts after sound.target

[Unit] Description=FireHouse Game After=sound.target

[Service] Type=simple Environment="DISPLAY=:0" Environment="XAUTHORITY=/home/pi/.Xauthority" ExecStart=/usr/bin/python3 /home/pi/FireGame/fire_game.py Restart=on-abort KillMode=process SendSIGHUP=nos

[Install] WantedBy=graphical.target

[Unit]
Description=FireHouse Game
After=sound.target

[Service]
Type=simple
Environment="DISPLAY=:0"
Environment="XAUTHORITY=/home/pi/.Xauthority"
ExecStart=/usr/bin/python3 /home/pi/FireGame/fire_game.py
Restart=on-abort
KillMode=process
SendSIGHUP=nos

[Install]
WantedBy=graphical.target

This service file worked for me... note how it starts after sound.target

[Unit] Description=FireHouse Game After=sound.target

[Service] Type=simple Environment="DISPLAY=:0" Environment="XAUTHORITY=/home/pi/.Xauthority" ExecStart=/usr/bin/python3 /home/pi/FireGame/fire_game.py Restart=on-abort KillMode=process SendSIGHUP=nos

[Install] WantedBy=graphical.target

This service file worked for me... note how it starts after sound.target

[Unit]
Description=FireHouse Game
After=sound.target

[Service]
Type=simple
Environment="DISPLAY=:0"
Environment="XAUTHORITY=/home/pi/.Xauthority"
ExecStart=/usr/bin/python3 /home/pi/FireGame/fire_game.py
Restart=on-abort
KillMode=process
SendSIGHUP=nos

[Install]
WantedBy=graphical.target
Source Link

This service file worked for me... note how it starts after sound.target

[Unit] Description=FireHouse Game After=sound.target

[Service] Type=simple Environment="DISPLAY=:0" Environment="XAUTHORITY=/home/pi/.Xauthority" ExecStart=/usr/bin/python3 /home/pi/FireGame/fire_game.py Restart=on-abort KillMode=process SendSIGHUP=nos

[Install] WantedBy=graphical.target