From bb7130a2baf2c46b0951c8f2561e2bbc89d7ae65 Mon Sep 17 00:00:00 2001 From: CroneKorkN Date: Sun, 1 Jun 2025 21:37:27 +0200 Subject: [PATCH] wip --- bootshorn-process.service | 8 ++++++++ bootshorn-process.timer | 11 +++++++++++ bootshorn-record.service | 13 +++++++++++++ install | 8 ++++++++ 4 files changed, 40 insertions(+) create mode 100644 bootshorn-process.service create mode 100644 bootshorn-process.timer create mode 100644 bootshorn-record.service create mode 100755 install diff --git a/bootshorn-process.service b/bootshorn-process.service new file mode 100644 index 0000000..9b33fde --- /dev/null +++ b/bootshorn-process.service @@ -0,0 +1,8 @@ +[Unit] +Description=Bootshorn Process Recording +After=bootshorn-record.service + +[Service] +Type=oneshot +WorkingDirectory=/opt/bootshorn +ExecStart=/opt/bootshorn/process \ No newline at end of file diff --git a/bootshorn-process.timer b/bootshorn-process.timer new file mode 100644 index 0000000..cf2b2d1 --- /dev/null +++ b/bootshorn-process.timer @@ -0,0 +1,11 @@ +[Unit] +Description=Run Bootshorn Processing every 10 minutes + +[Timer] +OnBootSec=2min +OnUnitActiveSec=10min +AccuracySec=30s +Unit=bootshorn-process.service + +[Install] +WantedBy=timers.target \ No newline at end of file diff --git a/bootshorn-record.service b/bootshorn-record.service new file mode 100644 index 0000000..ff88109 --- /dev/null +++ b/bootshorn-record.service @@ -0,0 +1,13 @@ +[Unit] +Description=Bootshorn Recorder +After=network.target + +[Service] +Type=simple +WorkingDirectory=/opt/bootshorn +ExecStart=/opt/bootshorn/record +Restart=always +RestartSec=5 + +[Install] +WantedBy=multi-user.target \ No newline at end of file diff --git a/install b/install new file mode 100755 index 0000000..f11db23 --- /dev/null +++ b/install @@ -0,0 +1,8 @@ +#!/bin/sh + +cp bootshorn-record.service /usr/local/lib/systemd/system +cp bootshorn-process.service /usr/local/lib/systemd/system +cp bootshorn-process.timer /usr/local/lib/systemd/system +systemctl daemon-reload +systemctl enable --now bootshorn-record.service +systemctl enable --now bootshorn-process.timer