kin: BATON-ARCH-010 Написать unit-тесты бэкенда (tester FAILED без вывода)
This commit is contained in:
parent
59eb117589
commit
8012cb1c0f
5 changed files with 49 additions and 5 deletions
10
deploy/baton-keepalive.service
Normal file
10
deploy/baton-keepalive.service
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Baton keep-alive ping
|
||||
# Запускается baton-keepalive.timer, не вручную
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
# Замените URL на реальный адрес вашего приложения
|
||||
ExecStart=curl -sf https://your-app.example.com/health
|
||||
StandardOutput=null
|
||||
StandardError=journal
|
||||
11
deploy/baton-keepalive.timer
Normal file
11
deploy/baton-keepalive.timer
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=Run Baton keep-alive every 10 minutes
|
||||
|
||||
[Timer]
|
||||
# Первый запуск через 1 минуту после загрузки системы
|
||||
OnBootSec=1min
|
||||
# Затем каждые 10 минут
|
||||
OnUnitActiveSec=10min
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue