Nginx as a Linux Service
eugene at annah.ru
Thu Oct 30 17:28:35 MSK 2008
On 31.10.08 00:59, Chris Gers32 wrote:
> Anoop Alias wrote:
>> Yes , Of-course :)
>> When you install nginx you will get a startup script /etc/init.d/nginx
> Thank your for your quick reply. So I first created a symbolic link from
> /etc/init.d/nginx to /usr/local/nginx/sbin/nginx then rebooted, but
> nginx didn't start. So I replaced the symbolic link with a copy of the
> nginx executable, again to no avail...
> You can tell I'm not a Linux expert, but what am I missing?
You should add nginx's init script to the default runlevel.
Red Hat's utility for managing init scripts called chkconfig.
So you need to execute something like:
# chkconfig --add nginx
More information about the nginx