Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 Jun 2008 10:39:59 -0700
From:      Noah <admin2@enabled.com>
To:        Noah <admin2@enabled.com>, User Questions <freebsd-questions@freebsd.org>
Subject:   Re: stunnel not running? (check /var/run/stunnel/stunnel.pid)
Message-ID:  <484AC7EF.1090608@enabled.com>
In-Reply-To: <20080607154313.GA56339@shepherd>
References:  <4849F2EF.8050807@enabled.com> <20080607154313.GA56339@shepherd>

next in thread | previous in thread | raw e-mail | index | archive | help
logs included below

Sahil Tandon wrote:
> Noah <admin2@enabled.com> 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)
> 
> [...]
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?484AC7EF.1090608>