Does a status check before anything else.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@348 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2003-01-16 14:54:33 +00:00
parent 376cc3bc85
commit ddab0f3311
1 changed files with 1 additions and 0 deletions

View File

@ -116,6 +116,7 @@ if ( $command =~ /^(?:start|restart)$/ )
if ( $status eq "stopped" )
{
execute( ZM_PATH_BIN."/zmfix" );
execute( ZM_PATH_BIN."/zmdc.pl status" );
my $dbh = DBI->connect( "DBI:mysql:database=".ZM_DB_NAME.";host=".ZM_DB_SERVER, ZM_DB_USERA, ZM_DB_PASSA );