5
0
mirror of git://git.proxmox.com/git/pve-firewall.git synced 2025-02-08 09:57:29 +03:00

simplify code (error log is done inside Daemon.pm)

This commit is contained in:
Dietmar Maurer 2014-12-31 17:18:53 +01:00
parent cf10b505b2
commit 8e47137802

View File

@ -31,14 +31,7 @@ my $cmdline = [$0, @ARGV];
my %daemon_options = (restart_on_error => 5, stop_wait_time => 5);
my $daemon;
eval {
$daemon = __PACKAGE__->new('pve-firewall', $cmdline, %daemon_options);
};
if (my $err = $@) {
syslog("err", "daemon init failed - $err");
exit(-1);
}
my $daemon = __PACKAGE__->new('pve-firewall', $cmdline, %daemon_options);
my $rpcenv = PVE::RPCEnvironment->init('cli');