openwrt procd init script 自启动脚本服务
openwrt 是针对于嵌入式设备的精简版 Linux 系统。所以一些常规的 Linux 服务都没有,比如 systemd 等。
openwrt 是通过 init.d 来管理服务的。所有的服务都在 /etc/init.d
目录下。
对某个服务进行操作也很方便,例如对 network 服务:
# 启动 network
/etc/init.d/network start
# 重启 network
/etc/init.d/network restart
# 停止 network
/etc/init.d/network stop