]> git.proxmox.com Git - pve-firewall.git/commitdiff
simplify code (error log is done inside Daemon.pm)
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 31 Dec 2014 16:18:53 +0000 (17:18 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 31 Dec 2014 16:18:53 +0000 (17:18 +0100)
src/pve-firewall

index c12a7a5b44909430ab76464c69c868213c214709..bdd9f21d43e25c346e63bd561129ec34717e3132 100755 (executable)
@@ -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');