#!/bin/sh /etc/rc.common
START=95
STOP=10
USE_PROCD=1

start_service() {
    mkdir -p /etc/xxyun
    chmod 0700 /etc/xxyun
    procd_open_instance
    procd_set_param command /usr/bin/xxyun-router serve
    # Native process supervision for the business service only. Explicit service
    # stop remains stopped; no core health checks or network restart are added.
    procd_set_param respawn 3600 5 5
    procd_set_param stdout 1
    procd_set_param stderr 1
    procd_set_param limits core="0"
    procd_close_instance
}
