Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 May 2008 15:15:28 -0400
From:      Michael Breen <hardbap@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Trying to start/stop nginx via rc.d/nginx
Message-ID:  <DC9E21D5-687B-4FD6-A73E-887E0ED54CD9@gmail.com>

next in thread | raw e-mail | index | archive | help
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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DC9E21D5-687B-4FD6-A73E-887E0ED54CD9>