Add device maintenance actions

This commit is contained in:
benya
2026-06-05 19:53:27 +03:00
parent 70f78772b8
commit 0d588fa62f
8 changed files with 392 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
#!/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 "$PROG" -config "$CONFIG_FILE"
procd_set_param stdout 1
procd_set_param stderr 1
procd_set_param term_timeout 15
procd_set_param respawn 3600 5 5
procd_close_instance
}
stop_service() {
service_stop "$PROG"
rm -rf /tmp/rmm-agent.lock
}