Unit für den Werkstatt-Server

This commit is contained in:
Stefan Bethke 2024-02-26 21:33:15 +00:00
parent 7fbee99978
commit 69914c6545
2 changed files with 14 additions and 0 deletions

9
foobaz-shop.service Normal file
View file

@ -0,0 +1,9 @@
[Unit]
Description=Foobaz DMX
[Service]
ExecStart=/home/pi/foobazdmx/foobaz-shop.sh
User=pi
[Install]
WantedBy=multi-user.target

5
foobaz-shop.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
here=$(cd $(dirname $0); pwd)
cd $here
exec poetry run python foobaz.py -a 127.0.0.1 -r shop