From 426c0c92d81a0dab537094ef61d64fc7b5d6c941 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Sun, 26 Jul 2026 21:28:55 +0200 Subject: [PATCH] commit stale changes --- arielle_collect.service | 19 +++++++++++++++++++ run.sh | 2 ++ src/arielle_collect/post_install.py | 7 ++++++- 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 arielle_collect.service create mode 100644 run.sh diff --git a/arielle_collect.service b/arielle_collect.service new file mode 100644 index 0000000..d2c6a8a --- /dev/null +++ b/arielle_collect.service @@ -0,0 +1,19 @@ +[Unit] +Description=Application for collect data from Arielle (id.3) + +# Optional: Wartet, bis das Netzwerk bereit ist +After=network.target + +[Service] +# Der vollständige Pfad zu deinem Skript +ExecStart=/home/jens/work/picam/run.sh +# Startet den Service bei einem Fehler neu +Restart=always +# Der Benutzer, unter dem der Service läuft (z.B. root, wenn nötig) +#User=dein_benutzername +# Optional: Arbeitsverzeichnis +#WorkingDirectory=/pfad/zum/projektordner + +[Install] +# Sorgt dafür, dass der Service beim Booten startet +WantedBy=multi-user.target diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..650171a --- /dev/null +++ b/run.sh @@ -0,0 +1,2 @@ +#!/bin/env bash +exec python3 /home/jens/work/picam/rpi_camera_surveillance_system_mjpeg.py diff --git a/src/arielle_collect/post_install.py b/src/arielle_collect/post_install.py index f13f774..9f042df 100644 --- a/src/arielle_collect/post_install.py +++ b/src/arielle_collect/post_install.py @@ -2,6 +2,11 @@ #pset = patch.fromfile(unified_diff_filename) #pset.apply() +from pathlib import Path +import os + +def main(): + print("Post install executed") + print(f"{Path(os.path.dirname(__file__)).absolute()}") -print("Post install executed")