projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Inventory: Fehlermeldung gefixt
[kivitendo-erp.git]
/
SL
/
System
/
TaskServer.pm
diff --git
a/SL/System/TaskServer.pm
b/SL/System/TaskServer.pm
index
e410e73
..
a37cd03
100644
(file)
--- a/
SL/System/TaskServer.pm
+++ b/
SL/System/TaskServer.pm
@@
-11,6
+11,7
@@
use Rose::Object::MakeMethods::Generic (
use File::Slurp;
use File::Spec::Functions qw(:ALL);
use File::Temp;
use File::Slurp;
use File::Spec::Functions qw(:ALL);
use File::Temp;
+use Sys::Hostname ();
use SL::System::Process;
use SL::System::Process;
@@
-22,6
+23,8
@@
use constant {
use constant PID_BASE => "users/pid";
use constant PID_BASE => "users/pid";
+my $node_id;
+
sub status {
my ($self) = @_;
sub status {
my ($self) = @_;
@@
-63,6
+66,14
@@
sub wake_up {
return kill('ALRM', $pid) ? 1 : undef;
}
return kill('ALRM', $pid) ? 1 : undef;
}
+sub node_id {
+ return $node_id if $node_id;
+
+ $node_id = ($::lx_office_conf{task_server} // {})->{node_id} || Sys::Hostname::hostname();
+
+ return $node_id;
+}
+
#
# private methods
#
#
# private methods
#