summaryrefslogtreecommitdiffstats
path: root/lib/Smokeping
diff options
context:
space:
mode:
authorNiko Tyni <ntyni@iki.fi>2008-03-04 22:57:30 +0100
committerNiko Tyni <ntyni@iki.fi>2008-03-04 22:57:30 +0100
commit31e4fcaa45fb5dca6018a1ef70b71bdfbbac4965 (patch)
tree8614d91963db5ff41cde9e916613a231dbd328df /lib/Smokeping
parent06144c93db3c0cc7bc5434740a76b9eac6c23ee4 (diff)
downloadsmokeping-31e4fcaa45fb5dca6018a1ef70b71bdfbbac4965.tar.gz
smokeping-31e4fcaa45fb5dca6018a1ef70b71bdfbbac4965.tar.xz
* add an optional --pid-dir option to specify the pid directory
when running as a slave. --niko
Diffstat (limited to 'lib/Smokeping')
-rw-r--r--lib/Smokeping/Slave.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Smokeping/Slave.pm b/lib/Smokeping/Slave.pm
index 32ce5a4..6214817 100644
--- a/lib/Smokeping/Slave.pm
+++ b/lib/Smokeping/Slave.pm
@@ -103,7 +103,7 @@ sub submit_results {
if ($@){
warn "WARNING evaluating new config from server failed: $@ --\n$data";
} elsif (defined $config and ref $config eq 'HASH'){
- $config->{General}{piddir} = $slave_cfg->{cache_dir};
+ $config->{General}{piddir} = $slave_cfg->{pid_dir};
Smokeping::do_log("Sent data to Server and got new config in response.");
return $config;
}