From owner-freebsd-questions@FreeBSD.ORG Mon Jun 9 08:49:18 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 77E191065679 for ; Mon, 9 Jun 2008 08:49:18 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx1.freebsd.org (Postfix) with ESMTP id 2DFEC8FC32 for ; Mon, 9 Jun 2008 08:49:18 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1K5d41-0004wE-2g for freebsd-questions@freebsd.org; Mon, 09 Jun 2008 01:49:17 -0700 Message-ID: <17728757.post@talk.nabble.com> Date: Mon, 9 Jun 2008 01:49:17 -0700 (PDT) From: Adamsonh To: freebsd-questions@freebsd.org In-Reply-To: <4849F2EF.8050807@enabled.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: adamson@polycastle.3322.org References: <4849F2EF.8050807@enabled.com> Subject: Re: stunnel not running? (check /var/run/stunnel/stunnel.pid) 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: Mon, 09 Jun 2008 08:49:18 -0000 noahwallach wrote: > > Okay I am not understanding something with stunnel. it appears that > stunnel cant start because it cant create a pid file. It happens every > time I upgrade it. > > # /usr/local/etc/rc.d/stunnel restart > stunnel not running? (check /var/run/stunnel/stunnel.pid). > Starting stunnel. > # /usr/local/etc/rc.d/stunnel restart > stunnel not running? (check /var/run/stunnel/stunnel.pid). > Starting stunnel. > # > > Anybody help me understand things here. so here is the relevent output > which I can provide some clues. > > > # ls -ld /var/run/stunnel/ > drwxrwxr-x 2 stunnel stunnel 512 Jun 5 14:28 /var/run/stunnel/ > # cat /usr/local/etc/stunnel/stunnel.conf > # Sample stunnel configuration file > # Copyright by Michal Trojnara 2002 > > # Comment it out on Win32 > cert = /usr/local/etc/stunnel/mail.pem > chroot = /var/run/stunnel > #chroot = /var/run > # PID is created inside chroot jail > pid = /stunnel.pid > setuid = stunnel > setgid = stunnel > # grep stunnel /etc/rc.conf > stunnel_enable="YES" > # cat /usr/local/etc/rc.d/stunnel > #!/bin/sh > # > # $FreeBSD: ports/security/stunnel/files/stunnel.in,v 1.9 2008/01/26 > 14:18:12 roam Exp $ > # > > # 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 'pid' in > # the stunnel.conf file. > # > > . /etc/rc.subr > > name="stunnel" > rcvar=`set_rcvar` > > load_rc_config $name > > : ${stunnel_enable="NO"} > : ${stunnel_config="/usr/local/etc/stunnel/${name}.conf"} > : ${stunnel_pidfile="/var/run/stunnel/${name}.pid"} > > command="/usr/local/bin/stunnel" > command_args=${stunnel_config} > pidfile=${stunnel_pidfile} > > required_files="${stunnel_config}" > > run_rc_command "$1" > > > > ------ > > any ideas? > > Cheers, > > Noah > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > ps auxw |grep stunnel sockstat -4 |grep stunnel clear anything stunnel before restart. -- View this message in context: http://www.nabble.com/stunnel-not-running--%28check--var-run-stunnel-stunnel.pid%29-tp17704688p17728757.html Sent from the freebsd-questions mailing list archive at Nabble.com.