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