1

I have nginx plus fast cgi. I wroted starting script that starts nginx with fast cgi. But after nginx update system rewrites this script to the default starting only nginx. Is there any way to avoid this rewrite?

B14D3
  • 5,110
  • 13
  • 58
  • 82

2 Answers2

0

Maybe you should create a separate init.d script for your fastcgi server and leave nginx one untouched. Take a peek to /etc/init.d/skeleton.

Giovanni Toraldo
  • 2,557
  • 18
  • 27
0

Or make it start like this instead of the init.d startup;

nginx -c /path/to/your/nginx.conf
exec /path/to/your/start-fastcgi-script.sh

put this in /etc/rc.local

Bart
  • 203
  • 1
  • 2