Start script and unit file
This commit is contained in:
parent
bbf862a0a2
commit
c27a809319
2 changed files with 13 additions and 0 deletions
9
foobaz.service
Normal file
9
foobaz.service
Normal 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
4
foobaz.sh
Executable 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
|
Loading…
Reference in a new issue