This commit is contained in:
CroneKorkN 2025-06-01 21:37:27 +02:00
parent 407a5228bf
commit bb7130a2ba
Signed by: cronekorkn
SSH key fingerprint: SHA256:v0410ZKfuO1QHdgKBsdQNF64xmTxOF8osF1LIqwTcVw
4 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,8 @@
[Unit]
Description=Bootshorn Process Recording
After=bootshorn-record.service
[Service]
Type=oneshot
WorkingDirectory=/opt/bootshorn
ExecStart=/opt/bootshorn/process

11
bootshorn-process.timer Normal file
View file

@ -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

13
bootshorn-record.service Normal file
View file

@ -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

8
install Executable file
View file

@ -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