I am using nginx on redhat for a very long time, I found a service
script, installed nginx as a service to redhat, it is fine.
but I found a bug, that after dirty shutdown, nginx service can not
auto start, and i only start it by hand.
please help me, blow is the service script:
#!/bin/bash
nginx Startup script for the Nginx HTTP Server
this script create it by jackbillow at 2007.10.15.
it is v.0.0.2 version.
if you find any errors on this scripts,please contact jackbillow.
and send mail to jackbillow at gmail dot com.
chkconfig: - 85 15
description: Nginx is a high-performance web and proxy server.
It has a lot of features, but it’s not for everyone.
On Fri, May 14, 2010 at 9:58 PM, wangyu1314 [email protected]
wrote:
I am using nginx on redhat for a  very long time, I found a service script, installed nginx as a service to redhat, it is fine.
but I found a bug, that after dirty shutdown, Â nginx service can not auto start, and i only start it by hand.
I am using nginx on redhat for a very long time, I found a service script, installed nginx as a service to redhat, it is fine.
but I found a bug, that after dirty shutdown, nginx service can not auto start, and i only start it by hand.
please help me
place nginx-init.txt from attach to /etc/init.d/nginx
place nginx-sysconfig.txt from attach to /etc/sysconfig/nginx
edit path inside init script and config to yours.