stunnel not running? (check /var/run/stunnel/stunnel.pid)

Noah admin2 at enabled.com
Sat Jun 7 17:40:10 UTC 2008


logs included below

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


More information about the freebsd-questions mailing list