1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#!/bin/sh /etc/rc.common # Copyright (C) 2009-2012 OpenWrt.org START=50 NGINX_BIN=/usr/sbin/nginx start() { mkdir -p /var/log/nginx mkdir -p /var/lib/nginx $NGINX_BIN } stop() { $NGINX_BIN -s stop } reload() { $NGINX_BIN -s reload } shutdown() { $NGINX_BIN -s quit }