mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-05-24 04:53:34 +00:00
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
59fdd737ea
commit
eb3b3e2905
@ -34,10 +34,13 @@ use PVE::RPCEnvironment;
|
|||||||
|
|
||||||
sub childinit {
|
sub childinit {
|
||||||
syslog ('info', "Starting new child $$");
|
syslog ('info', "Starting new child $$");
|
||||||
|
|
||||||
|
eval {
|
||||||
PVE::INotify::inotify_init();
|
PVE::INotify::inotify_init();
|
||||||
PVE::RPCEnvironment->init('pub');
|
PVE::RPCEnvironment->init('pub');
|
||||||
|
};
|
||||||
PVE::Config::inotify_init();
|
my $err = $@;
|
||||||
|
syslog('err', $err) if $err;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub childexit {
|
sub childexit {
|
||||||
|
Loading…
Reference in New Issue
Block a user