From 88da162112368d9076d998e3d3ec3044f061a696 Mon Sep 17 00:00:00 2001 From: stan Date: Fri, 24 Jun 2011 09:04:32 +0000 Subject: [PATCH] Reinitialise logs to allow database output after fork. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@3465 e3e1d417-86f3-4887-817a-d78f3d33393f --- scripts/zmcontrol.pl.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/zmcontrol.pl.in b/scripts/zmcontrol.pl.in index 8598e08e3..aba203614 100644 --- a/scripts/zmcontrol.pl.in +++ b/scripts/zmcontrol.pl.in @@ -131,7 +131,7 @@ if ( !$server_up ) if ( my $cpid = fork() ) { - logInit(); + logReinit(); # Parent process just sleep and fall through socket( CLIENT, PF_UNIX, SOCK_STREAM, 0 ) or die( "Can't open socket: $!" ); @@ -150,7 +150,7 @@ if ( !$server_up ) setpgrp(); - logInit(); + logReinit(); Info( "Control server $id/$protocol starting at ".strftime( '%y/%m/%d %H:%M:%S', localtime() ) );