Files
AWG2_harness/reboot_module/README.md
T

24 lines
1.0 KiB
Markdown

# awg2-reboot-scheduler
`awg2-reboot-scheduler` — production auxiliary binary в составе пакета AWG2 Harness.
Он читает общий конфиг [`/etc/awg2-harness/config.toml`](../config.example.toml), выбирает случайный момент в окне reboot и запрашивает перезагрузку через `systemctl --no-block reboot`.
## Production model
- binary: `/usr/sbin/awg2-reboot-scheduler`
- unit: [`/lib/systemd/system/awg2-reboot-scheduler.service`](../awg2-reboot-scheduler.service)
- config: `/etc/awg2-harness/config.toml`
- runtime plan file: `/run/awg2-harness/reboot.plan`
Сервис ставится и управляется общим packaging flow [`tools/build.sh`](../tools/build.sh), вручную в `/opt/...` ничего не раскладывается.
## Проверка на host
```bash
awg2-reboot-scheduler --config /etc/awg2-harness/config.toml
systemctl status awg2-reboot-scheduler
journalctl -u awg2-reboot-scheduler -f
```