Re: [PHP] Start/Stop Service from program php

2008-07-27 Thread Daniel Brown
On Sat, Jul 26, 2008 at 11:48 PM, Micah Gersten <[EMAIL PROTECTED]> wrote: > Generally, apache runs as www-data. What was the output of the command? Actually, Apache generally runs (in order) as nobody, apache, httpd, or daemon. Some distros (such as Ubuntu) or control panel installations (s

Re: [PHP] Start/Stop Service from program php

2008-07-26 Thread Micah Gersten
Generally, apache runs as www-data. What was the output of the command? Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com I need write a script execute some command, but try start or stop service like named, network this don't work I edit visudo and add the ne

[PHP] Start/Stop Service from program php

2008-07-26 Thread opc
Hi I try execute unsucesfull the next code from web page I need write a script execute some command, but try start or stop service like named, network this don't work I edit visudo and add the next lines User_Alias MYGROUP = apache, xyz Cmnd_Alias MYCOMMAND = /sbin/service %MYGROUP ALL = MYCO

Re: [PHP] Start/stop daemon using php

2008-02-27 Thread Per Jessen
David Sveningsson wrote: > Per Jessen skrev: >> So obviously something is catching the SIGQUIT before it gets to your >> daemon. You mention "a php site", so I take it you're running >> apache. >> In an apache process you then do an exec(something). I think apache >> is probably taking care of t

Re: [PHP] Start/stop daemon using php

2008-02-27 Thread David Sveningsson
Per Jessen skrev: David Sveningsson wrote: Hi, I've written an application in c which I would like to start/stop as a daemon in gnu/linux. The application has the argument "--daemon" which forks the process and exits the parent. Then it setups a SIGQUIT signal handler to properly cleanup and t

Re: [PHP] Start/stop daemon using php

2008-02-27 Thread David Sveningsson
@4u skrev: Hi, You might consider D-BUS for your application and the D-BUS PHP binding which is available since some days too. This would allow you to start / stop your C application in a far more secure way than the suggested one. Please have a look at my original release annoucement at the D-

Re: [PHP] Start/stop daemon using php

2008-02-27 Thread @4u
Hi, You might consider D-BUS for your application and the D-BUS PHP binding which is available since some days too. This would allow you to start / stop your C application in a far more secure way than the suggested one. Please have a look at my original release annoucement at the D-BUS mailing l

Re: [PHP] Start/stop daemon using php

2008-02-27 Thread Daniel Brown
On Wed, Feb 27, 2008 at 7:51 AM, David Sveningsson <[EMAIL PROTECTED]> wrote: > Hi, I've written an application in c which I would like to start/stop as > a daemon in gnu/linux. > > The application has the argument "--daemon" which forks the process and > exits the parent. Then it setups a SIGQU

Re: [PHP] Start/stop daemon using php

2008-02-27 Thread Per Jessen
David Sveningsson wrote: > Hi, I've written an application in c which I would like to start/stop > as a daemon in gnu/linux. > > The application has the argument "--daemon" which forks the process > and exits the parent. Then it setups a SIGQUIT signal handler to > properly cleanup and terminate.

Re: [PHP] Start/stop daemon using php

2008-02-27 Thread Jochem Maas
David Sveningsson schreef: Hi, I've written an application in c which I would like to start/stop as a daemon in gnu/linux. The application has the argument "--daemon" which forks the process and exits the parent. Then it setups a SIGQUIT signal handler to properly cleanup and terminate. It al

[PHP] Start/stop daemon using php

2008-02-27 Thread David Sveningsson
Hi, I've written an application in c which I would like to start/stop as a daemon in gnu/linux. The application has the argument "--daemon" which forks the process and exits the parent. Then it setups a SIGQUIT signal handler to properly cleanup and terminate. It also maintains a lockfile (wit

RE: [PHP] start/stop deamon

2004-04-08 Thread Jay Blanchard
[snip] can some body tell me how to start/stop a deamon ( eg: dhcpd ) from php ? and also can v apply that same method to start/stop a some script by php ? [/snip] http://www.php.net/exec

[PHP] start/stop deamon

2004-04-08 Thread CurlyBraces Technologies \( Pvt \) Ltd
can some body tell me how to start/stop a deamon ( eg: dhcpd ) from php ? and also can v apply that same method to start/stop a some script by php ?   thanx in advance curlys -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Start / Stop

2002-06-24 Thread Bruce Karstedt
Timestamp it at the beginning and the end. Bruce Karstedt President Technology Consulting Associates, Ltd. Tel: 847-735-9488 Fax: 847-735-9474 -Original Message- From: Chris Kay [mailto:[EMAIL PROTECTED]] Sent: Monday, June 24, 2002 6:57 PM To: PHP General List Subject: [PHP] Start

[PHP] Start / Stop

2002-06-24 Thread Chris Kay
Anyone have some tips on the best way to make a Script started @ 5:45pm Script ended @ 5:50pm Script? --- Chris Kay Technical Support - Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Teleph