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:
stan 2002-12-11 00:22:51 +00:00
parent 541f7d73dd
commit b0df713cdc
1 changed files with 8 additions and 0 deletions

View File

@ -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] )