[stunnel-users] launch stunnel server daemon from php?

Brian Hatch bri at stunnel.org
Mon May 5 20:15:16 CEST 2008

Around 2008-05-02 12:19 -0700, Wesley Kenzie implored:

> I am having problems launching stunnel from a php "exec" command.  I would
> like to have it launch as a server daemon and then have the exec command
> return control to the php script.  The best I have been able to do is launch
> it in foreground with a command like "/usr/local/bin/stunnel
> /etc/stunnel/test.conf &" but control never returns to the php script.
> I do not want to use inetd mode, and would prefer to specify command line
> arguments, but I see they are no longer available in version 4.

Can you show code that works for other excutables, but not stunnel,
plus your configuration file?

Stunnel will stop when it has no more input to send to the remote
end.  It could be that stunnel is hanging because its input isn't
closed, so it assumes it's not 'done' yet.

Brian Hatch                  Deja moo (n)
   Systems and                - The feeling that you've
   Security Engineer            heard that bull before.

Every message PGP signed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://www.stunnel.org/pipermail/stunnel-users/attachments/20080505/2c6f1ed3/attachment.sig>

More information about the stunnel-users mailing list