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 installed on CentOS and now I need it to be disabled (including on reboot), but keep it installed for further use.

Should I only remove /etc/init.d/nginx file? Or is there more graceful way to do that?

share|improve this question
up vote 3 down vote accepted

sudo /etc/init.d/nginx stop

sudo chkconfig nginx off

then confirm with

chkconfig --list | grep nginx

share|improve this answer
no need to pipe to grep, chkconfig --list <daemon> will show you just that one line – Zypher Jul 15 '11 at 1:24
good point. i pipe like it's a nervous tick. – MrTuttle Jul 15 '11 at 1:35
You know you've got a problem when you cat | less – womble Jul 15 '11 at 6:30

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.