OpenWrt add custom Service

Original link: https://blog.lucien.ink/archives/530/

OpenWrt add custom Service

Address of this article: blog.lucien.ink/archives/530

 #!/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 article is reprinted from: https://blog.lucien.ink/archives/530/
This site is for inclusion only, and the copyright belongs to the original author.