From owner-freebsd-questions@FreeBSD.ORG Sun May 4 19:44:36 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 54965106564A for ; Sun, 4 May 2008 19:44:36 +0000 (UTC) (envelope-from hardbap@gmail.com) Received: from hs-out-0708.google.com (hs-out-0708.google.com [64.233.178.246]) by mx1.freebsd.org (Postfix) with ESMTP id 1BF878FC20 for ; Sun, 4 May 2008 19:44:35 +0000 (UTC) (envelope-from hardbap@gmail.com) Received: by hs-out-0708.google.com with SMTP id m63so366622hsc.11 for ; Sun, 04 May 2008 12:44:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:content-type:content-transfer-encoding:mime-version:subject:date:x-mailer; bh=9NyyUa0CGKmZBcdtgGL1iB1cS5p9JxHSydFoLX7wfsU=; b=IWmZ1yGzWTMHYY/PEuaHIVpeUyOHxdmO/4s+iTll2PQEe46AeEr9CP4dypqVyokjh95wuBTQFjkYyXKKcbqVjURvKchm/dUaA/kO4A3mTiknVAm6HicDznYfnJ/y8q8dGBItxWtSf7mFe6zwXPRbMin42tXvohrIU2eUhK7qAWA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding:mime-version:subject:date:x-mailer; b=C/6maomUb2Icy3uXfwbMm5JQZRBoyF+HAWDAaX5K66cD04xhxHFrmO2THLeCmDwQu+/Jtj7Qy1ABlk50cOI8YBoBjQo3yViYfpDG4v50WBf+YSlYgEEGb3BX6yiwO07MvVVrv7r6+T9Muv2QmOcQctyJDux/ArqTWKJR7mqfNLg= Received: by 10.90.79.12 with SMTP id c12mr8532451agb.1.1209928593828; Sun, 04 May 2008 12:16:33 -0700 (PDT) Received: from ?192.168.1.102? ( [24.63.249.223]) by mx.google.com with ESMTPS id 20sm7537671agd.23.2008.05.04.12.16.33 (version=SSLv3 cipher=OTHER); Sun, 04 May 2008 12:16:33 -0700 (PDT) Message-Id: From: Michael Breen To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Sun, 4 May 2008 15:15:28 -0400 X-Mailer: Apple Mail (2.919.2) Subject: Trying to start/stop nginx via rc.d/nginx X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 May 2008 19:44:36 -0000 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