use strict;
use warnings;
+use PVE::SafeSyslog;
use PVE::Service::pvedaemon;
$SIG{'__WARN__'} = sub {
mkdir "/var/run/dtach";
};
-PVE::Service::pvedaemon->run_cli(undef, undef, $prepare);
+PVE::Service::pvedaemon->run_cli_handler(prepare => $prepare);