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?

link|improve this question
feedback

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

link|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
1  
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
feedback

Your Answer

 
or
required, but never shown

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