Trying to start/stop nginx via rc.d/nginx

Michael Breen hardbap at gmail.com
Sun May 4 19:44:36 UTC 2008


I'm pretty new to FreeBSD and nginx. The problem I am having is that  
when I try to start or stop nginx from /usr/local/rc.d/nginx nothing  
happens.

Here's the output from "uname -a" :

FreeBSD wilco. 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52  
UTC 2008     root at logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC   
i386

I've installed nginx via ports and it created the file /usr/local/etc/ 
rc.d/nginx.  If I enter "/usr/local/etc/rc.d/nginx" at the command  
line I get:

Usage: etc/rc.d/nginx [fast|force|one](start|stop|restart|rcvar| 
configtest|reload|status|poll)

But if I type "sudo /usr/local/etc/rc.d/nginx start" nothing happens.  
I don't get an error and there is nothing in /var/log/nginx-error.log.  
I can start nginx by entering "sudo /usr/local/sbin/nginx" and I  
verify this with "ps -ax | grep nginx":

  1147  ??  Ss     0:00.00 nginx: master process /usr/local/sbin/nginx
  1148  ??  S      0:00.00 nginx: worker process (nginx)

Here are the file permissions for /usr/local/etc/rc.d/nginx (which is  
identical to /usr/local/sbin/nginx):

-r-xr-xr-x  1 root  wheel  932 May  3 11:47 etc/rc.d/nginx

Please let me know if I need to provide any more information and thank  
in advance for your help.

Best.
Mike


More information about the freebsd-questions mailing list