Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 2 down vote accepted

sudo /etc/init.d/nginx stop

sudo chkconfig nginx off

then confirm with

chkconfig --list | grep nginx

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

Your Answer

 
discard

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.