Files
luci-app-owrt-remote/files/etc/init.d/owrt-remote-logs
T
kzolotarev95 aa7970c98c Release v116 with VPS router logs and reliable log delivery
Add per-router VPS log archives available offline, live delivery and last reported service state. Keep router logs in RAM with bounded rotation and deduplication. Align log pages and mobile statistics, and bump application and deployment tools to v116.
2026-10-14 08:05:52 +04:00

21 lines
483 B
Bash

#!/bin/sh /etc/rc.common
USE_PROCD=1
START=98
STOP=11
start_service() {
procd_open_instance journal
procd_set_param command /bin/sh /usr/lib/owrt-remote/logs.sh collect
procd_set_param respawn 3600 5 5
procd_set_param stdout 1
procd_set_param stderr 1
procd_close_instance
procd_open_instance archive
procd_set_param command /bin/sh /usr/lib/owrt-remote/logs.sh sync
procd_set_param env OWRT_REMOTE_SERVICE_LOG=1
procd_set_param respawn 3600 5 5
procd_close_instance
}