wip
This commit is contained in:
parent
407a5228bf
commit
bb7130a2ba
4 changed files with 40 additions and 0 deletions
8
bootshorn-process.service
Normal file
8
bootshorn-process.service
Normal 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
11
bootshorn-process.timer
Normal 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
13
bootshorn-record.service
Normal 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
8
install
Executable 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
|
Loading…
Reference in a new issue