diff --git a/foobaz.service b/foobaz.service new file mode 100644 index 0000000..e66444f --- /dev/null +++ b/foobaz.service @@ -0,0 +1,9 @@ +[Unit] +Description=Foobaz DMX + +[Service] +ExecStart=/home/beamer/foobazdmx/foobaz.sh +User=beamer + +[Install] +WantedBy=multi-user.target \ No newline at end of file diff --git a/foobaz.sh b/foobaz.sh new file mode 100755 index 0000000..5adfa1c --- /dev/null +++ b/foobaz.sh @@ -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