ininginx.conf(代码片段)

author author     2023-01-30     593

关键词:

### Nginx upstart script
### source: http://serverfault.com/a/391737/70451
### /etc/init/nginx.conf

description "nginx http daemon"

start on (filesystem and net-device-up IFACE=lo)
stop on runlevel [!2345]

env DAEMON=/usr/local/sbin/nginx
env PIDFILE=/var/run/nginx.pid

# Needed to allow Nginx to start, however, the wrong PID will be tracked
expect fork

# Test the nginx configuration (Upstart will not proceed if this fails)
pre-start exec $DAEMON -t

# Ensure nginx is shutdown gracefully
# Upstart will be tracking the wrong PID so the following is needed to stop nginx
post-stop exec $DAEMON -s stop

# Start Nginx
exec $DAEMON

ininginx.conf(代码片段)

查看详情

ininginx.conf(代码片段)

查看详情

ininginx.conf(代码片段)

查看详情

ininginx.conf(代码片段)

查看详情

ininginx.conf(代码片段)

查看详情

ininginx.conf(代码片段)

查看详情

ininginx.conf(代码片段)

查看详情

ininginx.conf(代码片段)

查看详情

ininginx.conf(代码片段)

查看详情

ininginx.conf(代码片段)

查看详情

ininginx.conf(代码片段)

查看详情

ininginx.conf(代码片段)

查看详情

ininginx.conf(代码片段)

查看详情

ininginx.conf(代码片段)

查看详情

ininginx.conf(代码片段)

查看详情

ininginx.conf(代码片段)

查看详情

ininginx.conf(代码片段)

查看详情

ininginx.conf(代码片段)

查看详情