[stunnel-users] Problem with pidfile

reg14 at rambler.ru reg14 at rambler.ru
Thu May 29 00:58:13 CEST 2014


I run stunnel (version 5.00) as a non-root user which does not have
write permissions to /var/run. So I created file /var/run/stunnel.log
with right access for that user

-rw-r--r--. 1 stunnel  stunnel  0 May 28 21:31 stunnel.pid

When I start daemon, it writes to logfile the following

2014.05.28 22:18:44 LOG3[8878]: Cannot create pid file /var/run/stunnel.pid
2014.05.28 22:18:44 LOG3[8878]: create: File exists (17)  

It seems that it tries to create pidfile in /var/run, and ignores that
the file is already exists. As a result, pid is not written to
stunnel.pid, and daemon crashes. Could this be fixed?



More information about the stunnel-users mailing list