diff options
author | Niko Tyni <ntyni@iki.fi> | 2008-03-04 22:57:30 +0100 |
---|---|---|
committer | Niko Tyni <ntyni@iki.fi> | 2008-03-04 22:57:30 +0100 |
commit | 31e4fcaa45fb5dca6018a1ef70b71bdfbbac4965 (patch) | |
tree | 8614d91963db5ff41cde9e916613a231dbd328df /lib/Smokeping | |
parent | 06144c93db3c0cc7bc5434740a76b9eac6c23ee4 (diff) | |
download | smokeping-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.pm | 2 |
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; } |