Changed to use zmdc.pl
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@179 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
541f7d73dd
commit
b0df713cdc
|
@ -77,6 +77,10 @@ function canStream()
|
|||
|
||||
function startDaemon( $daemon, $did )
|
||||
{
|
||||
$command = ZM_PATH."/zmdc.pl start $daemon $did";
|
||||
exec( $command );
|
||||
return;
|
||||
|
||||
$ps_command = "ps -edalf | grep '$daemon $did' | grep -v grep";
|
||||
$ps_array = preg_split( "/\s+/", exec( $ps_command ) );
|
||||
$pid = $ps_array[3];
|
||||
|
@ -98,6 +102,10 @@ function startDaemon( $daemon, $did )
|
|||
|
||||
function stopDaemon( $daemon, $did )
|
||||
{
|
||||
$command = ZM_PATH."/zmdc.pl stop $daemon $did";
|
||||
exec( $command );
|
||||
return;
|
||||
|
||||
$ps_command = "ps -edalf | grep '$daemon $did' | grep -v grep";
|
||||
$ps_array = preg_split( "/\s+/", exec( $ps_command ) );
|
||||
if ( $ps_array[3] )
|
||||
|
|
Loading…
Reference in New Issue