Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 0 down vote accepted

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.

share|improve this answer
I want to start nginx and cgi together – B14D3 Dec 14 '11 at 10:56
So, configure the fastcgi script to be started on the same runlevel of nginx. – Giovanni Toraldo Dec 14 '11 at 14:40

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

nginx -c /path/to/your/nginx.conf
exec /path/to/your/

put this in /etc/rc.local

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.