Commit 56a626d1 authored by Dietmar Maurer's avatar Dietmar Maurer

pvestatd: cleanup, run PVE::RPCEnvironment->init()

parent cc22a4b0
...@@ -3,28 +3,16 @@ ...@@ -3,28 +3,16 @@
use strict; use strict;
use warnings; use warnings;
use PVE::INotify;
use PVE::RPCEnvironment;
use PVE::Service::pvestatd; use PVE::Service::pvestatd;
PVE::Service::pvestatd->run_cli(); my $prepare = sub {
my $rpcenv = PVE::RPCEnvironment->init('cli');
__END__
=head1 NAME
pvestatd - PVE Status Daemon
=head1 SYNOPSIS
=include synopsis
=head1 DESCRIPTION
This daemom queries the status of VMs, storages and containers at
regular intervals. The result is sent to all nodes in the cluster.
=include pve_copyright
$rpcenv->init_request();
$rpcenv->set_language($ENV{LANG});
$rpcenv->set_user('root@pam');
};
PVE::Service::pvestatd->run_cli(undef, undef, $prepare);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment