axkibe/lsyncd — Issue #68: better docs for basic setup examples ? Config File not found error (example)
Author: axkibe
Created: 2011-11-16 15:07:19+00:00
State: open

Originally filed by tim.chip...@gmail.com on 2011-06-10T13:02:55

What steps will reproduce the problem?
1.stock install of lsyncd 2.0.4
2.attempting to configure stock config file
3.can't get it to pick up config ?

What is the expected output? What do you see instead?
=====================================================\
[root@gkc1 etc]# lsyncd -log all config=/etc/lsyncd.test
kernels clocks_per_sec=100
Call: configure()
Error: Cannot find config file at 'config=/etc/lsyncd.test'.

[root@gkc1 etc]# more /etc/lsyncd.*
::::::::::::::
/etc/lsyncd.conf
::::::::::::::
settings = {
logfile = "/tmp/lsyncd.log",
statusFile = "/tmp/lsyncd.status",
nodaemon = false,
}
::::::::::::::
/etc/lsyncd.test
::::::::::::::
sync{
source="/test/",
host="gkc2.domain.com",
targetdir="/test/",
rsyncOps="-ltuS"
}
[root@gkc1 etc]#

What version of the product are you using? On what operating system?

LsyncD 2.0.4 on RHEL/CentOS 5.6/64bit

Please provide any additional information below.

simply trying to get a basic config working. Attempted with just one config file (all options above in single config file) but when passing this to lsyncd it always returns, "cannot find config file". It is unclear from docs what syntax is required to create a legit / usable config file; and this error isn't verbose enough to make it clear why it is failing.