]>
Commit | Line | Data |
---|---|---|
776de3bc | 1 | #!/usr/bin/perl |
aff192e6 DM |
2 | |
3 | use strict; | |
776de3bc | 4 | use warnings; |
891d1242 | 5 | |
d36acebb DM |
6 | use PVE::INotify; |
7 | use PVE::RPCEnvironment; | |
b89ae9fc | 8 | use PVE::Service::pvestatd; |
aff192e6 | 9 | |
d36acebb | 10 | my $prepare = sub { |
ae8b09bd | 11 | my $rpcenv = PVE::RPCEnvironment->init('priv'); |
aff192e6 | 12 | |
d36acebb DM |
13 | $rpcenv->init_request(); |
14 | $rpcenv->set_language($ENV{LANG}); | |
15 | $rpcenv->set_user('root@pam'); | |
16 | }; | |
aff192e6 | 17 | |
092fa1b0 | 18 | PVE::Service::pvestatd->run_cli_handler(prepare => $prepare); |