X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=data%2FPVE%2FDaemon.pm;h=683743c358ccd48b47fe045b906419cc7ae8ed2e;hp=b6714531c7253b8e95a03b57e91547b02b37f46d;hb=da1a7f5889901e3b58d1f0f405d52469ababc514;hpb=7db2b94082ae5241b94a9f23d526a44737014bd1 diff --git a/data/PVE/Daemon.pm b/data/PVE/Daemon.pm index b671453..683743c 100644 --- a/data/PVE/Daemon.pm +++ b/data/PVE/Daemon.pm @@ -561,7 +561,9 @@ sub stop { } sub register_start_command { - my ($self, $class, $description) = @_; + my ($self, $description) = @_; + + my $class = ref($self); $class->register_method({ name => 'start', @@ -612,7 +614,9 @@ my $reload_daemon = sub { }; sub register_restart_command { - my ($self, $class, $use_hup, $description) = @_; + my ($self, $use_hup, $description) = @_; + + my $class = ref($self); $class->register_method({ name => 'restart', @@ -635,7 +639,9 @@ sub register_restart_command { } sub register_reload_command { - my ($self, $class, $description) = @_; + my ($self, $description) = @_; + + my $class = ref($self); $class->register_method({ name => 'reload', @@ -658,7 +664,9 @@ sub register_reload_command { } sub register_stop_command { - my ($self, $class, $description) = @_; + my ($self, $description) = @_; + + my $class = ref($self); $class->register_method({ name => 'stop', @@ -681,7 +689,9 @@ sub register_stop_command { } sub register_status_command { - my ($self, $class, $description) = @_; + my ($self, $description) = @_; + + my $class = ref($self); $class->register_method({ name => 'status',