Start Nginx Shell Script Automatically with OS in Fedora 17

In my previous post, I created (copy pasted) Shell Script for running newly compiled Nginx development version in Fedora 17 in Oracle VirtualBox, but when I stopped the machine and restarted it again, Nginx didn’t start with the Operating System. It is not overwhelming issue, as I forgot to make the Shell Script to start with the system runlevels. This shows how dependent I was on installing the software packages from the source. Anyways, I haven’t lost my Linux touch, so, I checked if Nginx is added to start with Operating System, by,


chkconfig --list nginx

The command didn’t output any result, so, now I have to add the nginx to automatically start when OS starts. In RedHat based systems its fairly easy by doing


chkconfig --add nginx

Now to check if the service is added or not


chkconfig --list nginx

The output should look like


Nginx  0:off  1:off  2:on  3:off  4:on  5:on  6:off

One Response to “Start Nginx Shell Script Automatically with OS in Fedora 17

  1. Politeness costs nothing and gains everything.

Leave a Reply

Your email address will not be published. Required fields are marked *


three × 8 =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>