X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=src%2FPVE%2FDaemon.pm;fp=src%2FPVE%2FDaemon.pm;h=e3e43d9b3f0561998c6318eaf16d2a856ffd360d;hp=dcc4d340eef8b3c1cad36f9f224b79c9cbfca8ea;hb=fb3a1b2985a35eb7e2630fbe4ddd6981f81d0b98;hpb=732b693f145ec0d595796ca6539edaef65ed4275 diff --git a/src/PVE/Daemon.pm b/src/PVE/Daemon.pm index dcc4d34..e3e43d9 100644 --- a/src/PVE/Daemon.pm +++ b/src/PVE/Daemon.pm @@ -3,7 +3,7 @@ package PVE::Daemon; # Abstract class to implement Daemons # # Features: -# * lock and write PID file /var/run/$name.pid to make sure onyl +# * lock and write PID file /var/run/$name.pid to make sure only # one instance is running. # * keep lock open during restart # * correctly daemonize (redirect STDIN/STDOUT) @@ -102,9 +102,9 @@ my $lockpidfile = sub { my ($running, $pid) = $self->running(); if ($running) { - die "can't aquire lock '$lkfn' - daemon already started (pid = $pid)\n"; + die "can't acquire lock '$lkfn' - daemon already started (pid = $pid)\n"; } else { - die "can't aquire lock '$lkfn' - $err\n"; + die "can't acquire lock '$lkfn' - $err\n"; } } };