Start script and unit file

This commit is contained in:
Stefan Bethke 2022-07-26 12:32:34 +02:00
parent bbf862a0a2
commit c27a809319
2 changed files with 13 additions and 0 deletions

9
foobaz.service Normal file
View file

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

4
foobaz.sh Executable file
View file

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