pve-manager/bin/pvestatd

19 lines
358 B
Plaintext
Raw Normal View History

#!/usr/bin/perl
2011-08-23 07:40:22 +02:00
use strict;
use warnings;
use PVE::INotify;
use PVE::RPCEnvironment;
use PVE::Service::pvestatd;
2011-08-23 07:40:22 +02:00
my $prepare = sub {
my $rpcenv = PVE::RPCEnvironment->init('priv');
2011-08-23 07:40:22 +02:00
$rpcenv->init_request();
$rpcenv->set_language($ENV{LANG});
$rpcenv->set_user('root@pam');
};
2011-08-23 07:40:22 +02:00
PVE::Service::pvestatd->run_cli_handler(prepare => $prepare);