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:
parent
01199d4032
commit
99a22765c8
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user