From 0cbc6a7663ed7e1ce14e32c04032522ad63c64e3 Mon Sep 17 00:00:00 2001 From: Axel Kittenberger Date: Tue, 19 Oct 2010 10:20:27 +0000 Subject: [PATCH] --- lsyncd-conf.lua | 5 +++++ lsyncd.c | 13 +++++++++++++ lsyncd.lua | 11 ++++++++++- 3 files changed, 28 insertions(+), 1 deletion(-) diff --git a/lsyncd-conf.lua b/lsyncd-conf.lua index 3443c8e..bfe443e 100644 --- a/lsyncd-conf.lua +++ b/lsyncd-conf.lua @@ -1,3 +1,8 @@ +---- +-- User configuration file for lsyncd. +-- +-- TODO documentation- +-- settings = { logfile = "/tmp/lsyncd", nodaemon, diff --git a/lsyncd.c b/lsyncd.c index 8228f8f..4137a67 100644 --- a/lsyncd.c +++ b/lsyncd.c @@ -1,3 +1,14 @@ +/** + * lsyncd.c Live (Mirror) Syncing Demon + * + * License: GPLv2 (see COPYING) or any later version + * + * Authors: Axel Kittenberger + * + * This is the core. It contains as minimal as possible glues + * to the operating system needed for lsyncd operation. All high-level + * logic is coded (when feasable) into lsyncd.lua + */ #include "config.h" #define LUA_USE_APICHECK 1 @@ -561,6 +572,8 @@ main(int argc, char *argv[]) /* the Lua interpreter */ lua_State* L; + /* TODO check lua version */ + /* load Lua */ L = lua_open(); luaL_openlibs(L); diff --git a/lsyncd.lua b/lsyncd.lua index 741fb20..fdd92bd 100644 --- a/lsyncd.lua +++ b/lsyncd.lua @@ -1,8 +1,17 @@ ------------------------------------------------------------------------------ --- lsyncd runner implemented in LUA +-- lsyncd.lua Live (Mirror) Syncing Demon +-- +-- License: GPLv2 (see COPYING) or any later version +-- +-- Authors: Axel Kittenberger +-- +-- This is the "runner" part of lsyncd. It containts all its high-level logic. +-- It works closely together with the lsyncd core in lsyncd.c. This means it +-- cannot be runned directly from the standard lua interpreter. ------------------------------------------------------------------------------ ---- +-- A security measurement. -- Core will exit if version ids mismatch. lsyncd_version = "2.0b1"