From owner-freebsd-questions@FreeBSD.ORG Sat Jun 7 17:40:10 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 C0D99106566C for ; Sat, 7 Jun 2008 17:40:10 +0000 (UTC) (envelope-from admin2@enabled.com) Received: from typhoon.enabled.com (typhoon.enabled.com [216.218.220.21]) by mx1.freebsd.org (Postfix) with ESMTP id 99C8D8FC0A for ; Sat, 7 Jun 2008 17:40:10 +0000 (UTC) (envelope-from admin2@enabled.com) Received: from Macintosh-96.local (nat-service4.juniper.net [66.129.225.151]) (authenticated bits=0) by typhoon.enabled.com (8.14.2/8.14.2) with ESMTP id m57He8KU027743 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 7 Jun 2008 10:40:08 -0700 (PDT) (envelope-from admin2@enabled.com) Message-ID: <484AC7EF.1090608@enabled.com> Date: Sat, 07 Jun 2008 10:39:59 -0700 From: Noah User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: Noah , User Questions References: <4849F2EF.8050807@enabled.com> <20080607154313.GA56339@shepherd> In-Reply-To: <20080607154313.GA56339@shepherd> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: 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: Sat, 07 Jun 2008 17:40:10 -0000 logs included below Sahil Tandon wrote: > Noah 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. > > I notice below that you have modified the rc script, but even after mimicking > your changes, I cannot reproduce your problem -- stunnel starts (and creates > a pid) just fine. What is logged to /var/log/messages by stunnel? 2008.06.07 10:37:55 LOG7[27645:134664192]: Snagged 64 random bytes from /root/.rnd 2008.06.07 10:37:55 LOG7[27645:134664192]: Wrote 1024 new random bytes to /root/.rnd 2008.06.07 10:37:55 LOG7[27645:134664192]: RAND_status claims sufficient entropy for the PRNG 2008.06.07 10:37:55 LOG7[27645:134664192]: PRNG seeded successfully 2008.06.07 10:37:55 LOG7[27645:134664192]: Certificate: /usr/local/etc/stunnel/mail.pem 2008.06.07 10:37:55 LOG7[27645:134664192]: Certificate loaded 2008.06.07 10:37:55 LOG7[27645:134664192]: Key file: /usr/local/etc/stunnel/mail.pem 2008.06.07 10:37:55 LOG7[27645:134664192]: Private key loaded 2008.06.07 10:37:55 LOG7[27645:134664192]: SSL context initialized for service pop3s 2008.06.07 10:37:55 LOG5[27645:134664192]: stunnel 4.25 on i386-unknown-freebsd6.2 with OpenSSL 0.9.8h 28 May 2008 2008.06.07 10:37:55 LOG5[27645:134664192]: Threading:PTHREAD SSL:ENGINE Sockets:POLL,IPv6 Auth:LIBWRAP 2008.06.07 10:37:55 LOG6[27645:134664192]: file ulimit = 11095 (can be changed with 'ulimit -n') 2008.06.07 10:37:55 LOG6[27645:134664192]: poll() used - no FD_SETSIZE limit for file descriptors 2008.06.07 10:37:55 LOG5[27645:134664192]: 5417 clients allowed 2008.06.07 10:37:55 LOG7[27645:134664192]: FD 5 in non-blocking mode 2008.06.07 10:37:55 LOG7[27645:134664192]: FD 6 in non-blocking mode 2008.06.07 10:37:55 LOG7[27645:134664192]: FD 7 in non-blocking mode 2008.06.07 10:37:55 LOG7[27645:134664192]: SO_REUSEADDR option set on accept socket 2008.06.07 10:37:55 LOG7[27645:134664192]: pop3s bound to 0.0.0.0:995 2008.06.07 10:37:55 LOG3[27646:134664192]: Cannot create pid file /tmp/stunnel.pid 2008.06.07 10:37:55 LOG3[27646:134664192]: create: No such file or directory (2) > > [...] >