nginx service can not auto start
Gena Makhomed
gmm at csdoc.com
Fri May 14 18:33:48 MSD 2010
On 14.05.2010 16:58, wangyu1314 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.
> 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.
> start() {
> if [ -e $nginx_pid ];then
> echo "nginx already running...."
> exit 1
bug here: $nginx_pid file exists after dirty shundown
--
Best regards,
Gena
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nginx-sysconfig.txt
URL: <http://nginx.org/pipermail/nginx/attachments/20100514/e4e01d5a/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nginx-init.txt
URL: <http://nginx.org/pipermail/nginx/attachments/20100514/e4e01d5a/attachment-0001.txt>
More information about the nginx
mailing list