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.
21 lines
483 B
Bash
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
|
|
}
|