From 69914c6545a1becdd63329240b6855e04ad39c55 Mon Sep 17 00:00:00 2001 From: Stefan Bethke Date: Mon, 26 Feb 2024 21:33:15 +0000 Subject: [PATCH] =?UTF-8?q?Unit=20f=C3=BCr=20den=20Werkstatt-Server?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- foobaz-shop.service | 9 +++++++++ foobaz-shop.sh | 5 +++++ 2 files changed, 14 insertions(+) create mode 100644 foobaz-shop.service create mode 100755 foobaz-shop.sh 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