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
This commit is contained in:
Dietmar Maurer 2011-08-24 12:14:05 +02:00
parent 01199d4032
commit 99a22765c8

View File

@ -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 {