Axel Kittenberger
1083fa1337
applied multi target patch
2008-12-05 22:27:03 +00:00
Axel Kittenberger
cbe571267d
fix text
2008-12-05 22:26:03 +00:00
Axel Kittenberger
6b0998093a
cosmetic
2008-12-05 06:50:43 +00:00
Axel Kittenberger
a987c7ab53
oops forgot before to commit the new manpage for the config file.
2008-12-04 21:57:39 +00:00
Axel Kittenberger
4cd49fbbad
updated/improved manpage documentation
2008-12-04 21:54:56 +00:00
Axel Kittenberger
0271c2e8e1
wont ever be done. got something better already.
2008-12-04 20:29:18 +00:00
Axel Kittenberger
559fd1d18f
fix-removed-watch-index.patch
2008-11-26 12:23:29 +00:00
Axel Kittenberger
101d89610a
dynamic use of tosync stack.
2008-11-24 18:40:44 +00:00
Axel Kittenberger
d5c65b03bd
terrible mistake, terrible default.
2008-11-24 17:59:01 +00:00
Axel Kittenberger
9271d6374e
lsyncd is freed from my "scanhome" hack forever, without insource replacement. will explain it on the discussion group.
2008-11-24 17:55:54 +00:00
Axel Kittenberger
d963f4c993
oops forgot the template...
2008-11-21 13:14:14 +00:00
Axel Kittenberger
f6ce4de561
...
2008-11-21 10:06:37 +00:00
Axel Kittenberger
e387b4b658
dist the conf.xml file
2008-11-21 10:04:18 +00:00
Axel Kittenberger
7e85ff1bdb
fixes for reiserfs.
2008-11-21 09:47:28 +00:00
Axel Kittenberger
a6fcd748d1
errors go out on stderr, check source/target in config file
2008-11-21 09:41:42 +00:00
Axel Kittenberger
91a296805f
yay, some TODO are TODONE
2008-11-20 22:13:11 +00:00
Axel Kittenberger
5176ae0d54
Introduction lsyncd.conf.xml
2008-11-20 21:38:58 +00:00
Axel Kittenberger
c09dcd1775
for older boxes this can be useful to pick the right automake binary.
2008-11-05 18:56:24 +00:00
Axel Kittenberger
441e1488b6
reintroducing %userwww (for all i care as undocumented feature in future), it works well in our setting, and we are currently restarting to actually use lsyncd in my office.
2008-11-05 18:55:44 +00:00
Axel Kittenberger
32f4b88b9c
big changes: introduced tosync_stack, now a lot of race conditions should be helped. cp -r works, mv works without workaround. Everything a bit more shinny.
2008-11-05 15:37:21 +00:00
Junichi Uekawa
445292cf4e
cp -r failure case test.
...
Axel reported that lsyncd will break with cp -r.
2008-11-05 11:37:35 +00:00
Junichi Uekawa
63417731b7
Disambiguate fork/exec failure with rsync failure.
...
Use a different exit code to rsync to know that execv of rsync failed.
2008-11-05 11:37:26 +00:00
Axel Kittenberger
47b38c3711
added debug output for inotify events before they are processed. Added some comments on ideas how to fix cp -r and mv problems.
2008-11-04 21:41:07 +00:00
Junichi Uekawa
39fce4949e
use PATH_MAX from limits.h insetad of self-defined MAX_PATH.
...
Use PATH_MAX+1 for C buffers, since PATH_MAX does not include terminating '0'.
2008-11-03 13:13:29 +00:00
Junichi Uekawa
b85f94bf43
Revert "move rsync actions into a script, this way rsync options are easily configureable, and the admin can freely change rsync behavior as well as add additional actions after rsyncs."
...
This reverts commit e4727016c88bce6330cb944b8fa7e15a20ddea48.
2008-11-03 13:09:40 +00:00
Junichi Uekawa
4820dbbc49
Revert "minni cleanups."
...
This reverts commit a83f5dcfba72d787f11bc3518ec0e48f54351ce9.
2008-11-03 13:09:32 +00:00
Junichi Uekawa
7a517789db
Remove AC_PROG_LIBTOOL from configure.in.
...
we don't use libtool to generate shared libraries, and that should mean we don't need it.
2008-11-03 13:04:05 +00:00
Axel Kittenberger
964e4fc847
minni cleanups.
2008-11-02 21:21:53 +00:00
Axel Kittenberger
ad0a7398dd
move rsync actions into a script, this way rsync options are easily configureable, and the admin can freely change rsync behavior as well as add additional actions after rsyncs.
2008-11-02 20:54:02 +00:00
Junichi Uekawa
e1e6940146
Revise test to handle different exit code.
...
test for exit code 3 instead of 255.
2008-11-02 12:26:45 +00:00
Junichi Uekawa
c35c712791
Made more error code outputs.
...
It will give 0 when successful, 1-5 when there is some error.
Document the error codes in the manpage too.
2008-11-02 12:23:37 +00:00
Junichi Uekawa
c04d167c76
refactor code to use execv instead of execl.
2008-10-23 14:07:57 +00:00
Junichi Uekawa
e6782df02d
remove %userwww
...
It doesn't work, so remove this feature.
2008-10-23 14:07:50 +00:00
Junichi Uekawa
ba73b1cc5e
autogenerate files using autoconf/automake.
...
These files are not VCS controlled, but available on releases. To
help ease check-out -> build flow, add a script to run the commands
for autogenerating the build scripts.
2008-10-13 23:51:50 +00:00
Junichi Uekawa
cabd55bce0
add error checking with rsync, and re-run rsync from the parent
...
directory if possible.
userwww handling seems broken, but at least check for breakages.
2008-10-13 02:06:19 +00:00
Junichi Uekawa
e21b43fd31
Get version string from autoconf macros.
2008-10-13 02:06:12 +00:00
Junichi Uekawa
0060b65929
remove config.h.in; it is auto-generated also
2008-10-13 02:06:06 +00:00
Junichi Uekawa
82302ad03e
testsuite to move directory and remove a directory.
...
lsyncd1.0 doesn't handle this case very well, and lsyncd does not copy
the files, and does not detect an error condition, or simply dies.
2008-10-08 04:09:02 +00:00
Junichi Uekawa
03a32b6e1e
add sanity checking in filenames and paths.
...
Check files exist, and check paths are specified absolute.
I am relying on paths starting from '/' when they are absolute.
daemon() will chdir to /, and that means giving relative paths to this
program will give unexpected (to the user) results.
2008-10-08 04:08:56 +00:00
Junichi Uekawa
f62c1f3cc2
make --pidfile option for handling pids.
...
Add manpage on the way
2008-10-08 04:08:52 +00:00
Junichi Uekawa
673570ea06
add tabstop specifier for emacs editing.
2008-10-08 04:08:46 +00:00
Junichi Uekawa
e7c1af91d7
add check-syntax Makefile target to facilitate hacking with flymake(emacs)
2008-10-08 04:08:42 +00:00
Junichi Uekawa
ca8cfa8c67
start adding a basic testsuite. test for --help, --version, --logfile and --rsync-binary.
2008-10-08 04:08:38 +00:00
Junichi Uekawa
179ec99736
Change help output to be based on variable contents, not hard-coded.
2008-10-08 04:08:31 +00:00
Junichi Uekawa
7b8b13316c
Revise configure.in to be more sensible.
...
Reduce the number of header files checked in configure.
Source code doesn't really use the output, and we're linux specific.
Other configure.in parts are fixed to use m4 features rather than
relying on shell features.
2008-10-08 04:08:28 +00:00
Junichi Uekawa
713d84e439
remove auto-generated files from VCS control.
2008-10-08 04:08:24 +00:00
Axel Kittenberger
465511bd19
oh indeed, but this should work
2008-10-07 06:30:40 +00:00
Axel Kittenberger
f29445ebba
stupid error
2008-10-06 20:40:28 +00:00
Axel Kittenberger
be93533418
some more files
2008-10-06 20:35:52 +00:00
Axel Kittenberger
742789e258
incooperated changes from dancerj
2008-10-04 08:49:54 +00:00