From eb3b3e2905803039f90c263b632abd88379f591c Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 24 Aug 2011 12:14:05 +0200 Subject: [PATCH] log errors from apache chilinit() it seems that apache doesn not log error to the error log, so we catch them an log to syslog --- www/manager/startup.pl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/www/manager/startup.pl b/www/manager/startup.pl index 736eb5fb..23d78398 100755 --- a/www/manager/startup.pl +++ b/www/manager/startup.pl @@ -34,10 +34,13 @@ use PVE::RPCEnvironment; sub childinit { syslog ('info', "Starting new child $$"); - PVE::INotify::inotify_init(); - PVE::RPCEnvironment->init('pub'); - PVE::Config::inotify_init(); + eval { + PVE::INotify::inotify_init(); + PVE::RPCEnvironment->init('pub'); + }; + my $err = $@; + syslog('err', $err) if $err; } sub childexit {