From c27a8093196763a1019aa7214e9bb34ef322a93e Mon Sep 17 00:00:00 2001 From: Stefan Bethke Date: Tue, 26 Jul 2022 12:32:34 +0200 Subject: [PATCH] Start script and unit file --- foobaz.service | 9 +++++++++ foobaz.sh | 4 ++++ 2 files changed, 13 insertions(+) create mode 100644 foobaz.service create mode 100755 foobaz.sh 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