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?

2 Answers 2

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.

2
  • I want to start nginx and cgi together
    – B14D3
    Dec 14, 2011 at 10:56
  • So, configure the fastcgi script to be started on the same runlevel of nginx. Dec 14, 2011 at 14:40
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .