OpenWrt 添加自定义 Service
OpenWrt 添加自定义 Service
OpenWrt 添加自定义 Service
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
## !/bin/sh /etc/rc.common
## "new" style init script
## Look at /lib/functions/service.sh on a running system for explanations of what other SERVICE_
## options you can use, and when you might want them.
START=80
APP=node_exporter
SERVICE_WRITE_PID=1
SERVICE_DAEMONIZE=1
start() {
service_start /etc/usr/local/node_exporter/${APP}
}
stop() {
service_stop /etc/usr/local/node_exporter/${APP}
}
This post is licensed under CC BY 4.0 by the author.