[tinysofa-devel] stunnel package seems broken

Mikael Bak mikael at tinysofa.org
Wed May 17 16:26:35 UTC 2006


On Monday 15 May 2006 17:52, Mikael Bak wrote:
> Hi,
> It seems our stunnel package is broken. I haven't figured out what's wrong
> with it yet, but I suspect errors in at least the init script. Even
> syntactical errors. I will do some more tests tomorrow to try to track down
> the problems.
>

I found the problems in the stunnel package. This package can never have 
worked, I think. Errors in the init script made it impossible.

Additionally the rpm has to be modified so that the stunnel process can write 
to /var/run/stunnel/ directory.

Patch to /etc/init.d/stunnel:
$ diff -u /etc/init.d/stunnel.orig /etc/init.d/stunnel
--- /etc/init.d/stunnel.orig    2005-03-10 03:26:13.000000000 +0100
+++ /etc/init.d/stunnel 2006-05-17 17:23:04.000000000 +0200
@@ -19,14 +19,14 @@
 fi

 # Sanity checks.
-if [ -f /etc/stunnel/stunnel.conf ]; then
+if [ ! -f /etc/stunnel/stunnel.conf ]; then
   STRING="stunnel: Config file not found"
   echo -n "$STRING"
   failure "$STRING"
   echo
   exit 1
 fi
-if [ -x /usr/sbin/stunnel ]; then
+if [ ! -x /usr/sbin/stunnel ]; then
   STRING="stunnel: Executable binary not found"
   echo -n "$STRING"
   failure "$STRING"
@@ -75,6 +75,7 @@
                $0 start
                RETVAL=$?
        fi
+       ;;
     *)
        echo "Usage: $0 {start|stop|status|restart|try-restart}"
        ;;

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.tinysofa.org/pipermail/tinysofa-devel/attachments/20060517/85172e1f/attachment.bin 


More information about the Tinysofa-devel mailing list