Harden API uptime with systemd ownership guard and watchdog
This commit is contained in:
parent
ab6ad85db7
commit
b089dc1639
10 changed files with 93 additions and 7 deletions
8
deploy/systemd/staysense-watchdog.service
Normal file
8
deploy/systemd/staysense-watchdog.service
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[Unit]
|
||||
Description=StaySense API Health Watchdog
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/env bash /opt/staysense/deploy/scripts/staysense-watchdog.sh
|
||||
Loading…
Add table
Add a link
Reference in a new issue