Re: Trying to start/stop nginx via rc.d/nginx
I knew it had to be something simple! Thank you Max. On May 4, 2008, at 3:48 PM, Maxim Khitrov wrote: On Sun, May 4, 2008 at 3:15 PM, Michael Breen <[EMAIL PROTECTED]> wrote: 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. You need to add nginx_enable="YES" to /etc/rc.conf. - Max ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Trying to start/stop nginx via rc.d/nginx
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 [EMAIL PROTECTED]:/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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"