菜单

admin
发布于 2024-05-24 / 231 阅读
0

openwrt服务配置文件

#!/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 启动优先级
START=3 
APP=proxy
SERVICE_WRITE_PID=1 
SERVICE_DAEMONIZE=1 

start() { 
        service_start  /root/$APP svc
} 
stop() { 
        service_stop /root/$APP svc
}