In this bump as agreed with Thomas we are dropping out all the nginx 3rd party addons. In case you would like to see your 3rd party addon included please send a pull request and make sure it works with newest version. Signed-off-by: Luka Perkov <luka@openwrt.org>
17 lines
398 B
Bash
17 lines
398 B
Bash
#!/bin/sh /etc/rc.common
|
|
# Copyright (C) 2015 OpenWrt.org
|
|
|
|
START=50
|
|
|
|
USE_PROCD=1
|
|
|
|
start_service() {
|
|
[ -d /var/log/nginx ] || mkdir -p /var/log/nginx
|
|
[ -d /var/lib/nginx ] || mkdir -p /var/lib/nginx
|
|
|
|
procd_open_instance
|
|
procd_set_param command /usr/sbin/nginx -c /etc/nginx/nginx.conf -g 'daemon off;'
|
|
procd_set_param file /etc/nginx/nginx.conf
|
|
procd_set_param respawn
|
|
procd_close_instance
|
|
}
|