Files
rmm-openwrt/agent/openwrt/rmm-agent.init
2026-06-04 15:26:43 +03:00

21 lines
341 B
Bash

#!/bin/sh /etc/rc.common
START=95
STOP=10
USE_PROCD=1
PROG=/usr/bin/rmm-agent
CONFIG_FILE=/etc/rmm-agent.conf
start_service() {
procd_open_instance
procd_set_param command /bin/sh "$PROG"
procd_set_param env CONFIG_FILE="$CONFIG_FILE"
procd_set_param respawn 3600 5 5
procd_close_instance
}
stop_service() {
service_stop "$PROG"
}