T
T
teet2015-06-17 13:43:50
Debian
teet, 2015-06-17 13:43:50

Why won't lsyncd start?

I have debian 8.1 jessie
Installed lsyncd:

apt-get install lsyncd
mkdir /etc/lsyncd
mkdir /etc/lsyncd/lsyncd.d
touch /etc/lsyncd/lsyncd.conf.lua
touch /etc/lsyncd/lsyncd.d/srv1.conf.lua

lsyncd.conf.lua:
settings{
  logfile="/var/log/lsyncd/lsyncd.log",
  statusFile="/var/log/lsyncd/lsyncd.status",
}

local confdir = '/etc/lsyncd/lsyncd.d/'
local entries = readdir( confdir )

for name, isdir in pairs( entries ) do
    if not isdir then
        dofile( confdir .. name )
    end
end

srv1.conf.lua
sync{
  default.rsync,
  source="/home/user/src",
  target="/mnt/bakup"
}

when run from command line:
lsyncd /etc/lsyncd/lsyncd.conf.lua -pidfile /var/run/lsyncd.pid -logfile /var/log/lsyncd/lsyncd.log

everything is working fine.
and here is the command:
/etc/init.d/lsyncd start
or
service lsyncd start
does not start the daemon. what could be the problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question