This is a discussion on Re: [stunnel-users] launch stunnel server daemon from php? within the Stunnel Users forums, part of the Networking and Network Related category; --===============1481049045== Content-Type: multipart/alternative; boundary="----=_Part_19225_3910360.1209770824061" ------=_Part_19225_3910360.1209770824061 Content-Type: text/plain; charset=ISO-8859-1 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============1481049045==
Content-Type: multipart/alternative; boundary="----=_Part_19225_3910360.1209770824061" ------=_Part_19225_3910360.1209770824061 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline No, that does not work either. I can get stunnel to start fine outside of php, but not as an exec or shell_exec from within a running script, or even from within php -a interactively. I can get other programs to work fine this way, so it is specific to the stunnel executable as best I can tell. I have tried running various forms of bash scripts too, but none do any better. Ideas? .. . . . . Wesley On Fri, May 2, 2008 at 12:52 PM, Ludolf Holzheid < lholzheid@bihl-wiedemann.de> wrote: > On Fri, 2008-05-02 12:32:19 -0700, Wesley Kenzie wrote: > > Yes. Without this stunnel would not launch. With foreground = no and > with > > the trailing & on the command line I got it to launch, but still control > > will not return to my php script ... > > > > . . . . . > > Wesley > > > > On Fri, May 2, 2008 at 12:29 PM, Ludolf Holzheid < > > lholzheid@bihl-wiedemann.de> wrote: > > > > > On Fri, 2008-05-02 12:19:38 -0700, Wesley Kenzie wrote: > > > > 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. > > > > > > Did you try to specify ``foreground = no'' in the configuration file? > > Wesley, > > I must confess that I don't know php and its `exec' command. There > must be something special about it. > > I would try to start a shell, which starts stunnel, which, in turn, > detaches itself to the background (i.e. something like "/bin/sh -c > '/usr/local/bin/stunnel /etc/stunnel/test.conf'"). So that the process > started by `exec' finishes and hopefully control returns to php. > > hth, > > Ludolf > > -- > > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > A: Top-posting. > Q: What is the most annoying thing in e-mail? > ------=_Part_19225_3910360.1209770824061 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline <div>No, that does not work either.</div> <div> </div> <div>I can get stunnel to start fine outside of php, but not as an exec or shell_exec from within a running script, or even from within php -a interactively.</div> <div> </div> <div>I can get other programs to work fine this way, so it is specific to the stunnel executable as best I can tell.</div> <div> </div> <div>I have tried running various forms of bash scripts too, but none do any better.</div> <div> </div> <div>Ideas?</div> <div> </div> <div>. . . . .</div> <div>Wesley<br><br></div> <div class="gmail_quote">On Fri, May 2, 2008 at 12:52 PM, Ludolf Holzheid <<a href="mailto:lholzheid@bihl-wiedemann.de">lholzheid@bihl-wiedemann.de</a>> wrote:<br> <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"> <div class="Ih2E3d">On Fri, 2008-05-02 12:32:19 -0700, Wesley Kenzie wrote:<br>> Yes. Without this stunnel would not launch. With foreground = no and with<br>> the trailing & on the command line I got it to launch, but still control<br> > will not return to my php script ...<br>><br>> . . . . .<br>> Wesley<br>><br>> On Fri, May 2, 2008 at 12:29 PM, Ludolf Holzheid <<br>> <a href="mailto:lholzheid@bihl-wiedemann.de">lholzheid@bihl-wiedemann.de</a>> wrote:<br> ><br>> > On Fri, 2008-05-02 12:19:38 -0700, Wesley Kenzie wrote:<br>> > > I am having problems launching stunnel from a php "exec" command. I<br>> > would<br>> > > like to have it launch as a server daemon and then have the exec command<br> > > > return control to the php script.<br>> ><br>> > Did you try to specify ``foreground = no'' in the configuration file?<br><br></div>Wesley,<br><br>I must confess that I don't know php and its `exec' command. There<br> must be something special about it.<br><br>I would try to start a shell, which starts stunnel, which, in turn,<br>detaches itself to the background (i.e. something like "/bin/sh -c<br>'/usr/local/bin/stunnel /etc/stunnel/test.conf'"). So that the process<br> started by `exec' finishes and hopefully control returns to php.<br><br>hth,<br><br>Ludolf<br><font color="#888888"><br>--<br><br>A: Because it messes up the order in which people normally read text.<br>Q: Why is top-posting such a bad thing?<br> A: Top-posting.<br>Q: What is the most annoying thing in e-mail?<br></font></blockquote></div> ------=_Part_19225_3910360.1209770824061-- --===============1481049045== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ stunnel-users mailing list stunnel-users@mirt.net http://stunnel.mirt.net/mailman/listinfo/stunnel-users --===============1481049045==-- |
![]() |
| Thread Tools | |
| Display Modes | |
|
|