From owner-freebsd-questions@FreeBSD.ORG Thu Aug 25 20:01:44 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B184716A41F for ; Thu, 25 Aug 2005 20:01:44 +0000 (GMT) (envelope-from list-freebsd-2004@morbius.sent.com) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id F06EF43D53 for ; Thu, 25 Aug 2005 20:01:42 +0000 (GMT) (envelope-from list-freebsd-2004@morbius.sent.com) Received: from frontend1.internal (mysql-sessions.internal [10.202.2.149]) by frontend1.messagingengine.com (Postfix) with ESMTP id 28587CCAEB0 for ; Thu, 25 Aug 2005 16:01:41 -0400 (EDT) Received: from frontend3.messagingengine.com ([10.202.2.152]) by frontend1.internal (MEProxy); Thu, 25 Aug 2005 16:01:41 -0400 X-Sasl-enc: T/78V/haPXodiKFpDE9LB4/qg4JYXrNAejBaSbi+FO7l 1125000094 Received: from gumby.localdomain (dsl-80-41-71-249.access.as9105.com [80.41.71.249]) by frontend3.messagingengine.com (Postfix) with ESMTP id 3FD5E1DC for ; Thu, 25 Aug 2005 16:01:34 -0400 (EDT) From: RW To: freebsd-questions@freebsd.org Date: Thu, 25 Aug 2005 21:01:32 +0100 User-Agent: KMail/1.8.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200508252101.33284.list-freebsd-2004@morbius.sent.com> Subject: stunnel not stopped by rc.d script 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: Thu, 25 Aug 2005 20:01:44 -0000 If I try to stop stunnel with it's rc.d script I get # /usr/local/etc/rc.d/stunnel.sh stop stunnel not running? (check /var/run/stunnel.pid). but the PID file is actually in /var/tmp. I don't have anything in my stunnel.conf or rc.conf file that's relevant. This is /usr/local/etc/rc.d/stunnel.sh: --------------------------------------------------------------------------- # PROVIDE: stunnel # REQUIRE: NETWORKING SERVERS # BEFORE: DAEMON # KEYWORD: shutdown # # Add some of the following variables to /etc/rc.conf to configure stunnel: # stunnel_enable (bool): Set to "NO" by default. # Set it to "YES" to enable stunnel. # stunnel_config (str): Default "/usr/local/etc/stunnel/stunnel.conf" # Set it to the full path to the config file # that stunnel will use during the automated # start-up. # stunnel_pidfile (str): Default "/usr/local/var/stunnel/stunnel.pid" # Set it to the value of 'pidfile' in # the stunnel.conf file. # . /etc/rc.subr name="stunnel" rcvar=`set_rcvar` stunnel_config="/usr/local/etc/stunnel/${name}.conf" stunnel_pidfile="/var/run/${name}.pid" command="/usr/local/sbin/stunnel" [ -z "$stunnel_enable" ] && stunnel_enable="NO" load_rc_config $name command_args=${stunnel_config} pidfile=${stunnel_pidfile} required_files="${stunnel_config}" run_rc_command "$1" ---------------------------------------------------------------------------