Commit Graph

59 Commits

Author SHA1 Message Date
Axel Kittenberger
2e2bc28c27 no-startup flag introduced, whyever someone wants this, I'm generally for more configureability 2010-07-27 13:00:32 +00:00
Axel Kittenberger
daa6166020 dryrunmessages 2010-07-12 07:03:01 +00:00
Axel Kittenberger
89164e2ab0 dryruns 2010-07-12 06:49:53 +00:00
Axel Kittenberger
2092eff408 fix va_calls for 64bit systems 2010-07-09 06:40:53 +00:00
Axel Kittenberger
731f581d70 jiffies wrap around safety 2010-05-24 12:32:34 +00:00
Axel Kittenberger
23444c6f7a there go segfaults. 2010-05-22 16:21:42 +00:00
Axel Kittenberger
c33e0c0c57 oops 2010-05-22 16:02:23 +00:00
Axel Kittenberger
5974444444 oops forgot one debugging output 2010-05-22 15:33:08 +00:00
Axel Kittenberger
cf489dc1bf added delays\! 2010-05-22 15:25:31 +00:00
Axel Kittenberger
7d0470ccc6 comments 2010-05-22 12:09:57 +00:00
Axel Kittenberger
082278fae8 get exclusions from config file. 2010-05-22 12:05:31 +00:00
Axel Kittenberger
6dce1044a9 fixed logging message to reflect actual handling 2010-05-20 16:44:13 +00:00
Axel Kittenberger
eea107ea81 deep exlusion dirs 2010-05-20 15:10:41 +00:00
Axel Kittenberger
4f4c667d6e commited wrong file :-/ 2010-05-20 12:42:58 +00:00
Axel Kittenberger
7ce11b7719 fixed missed exclude file paramters. 2010-05-20 12:36:45 +00:00
Axel Kittenberger
247b2252ed sync on IN_ATTRIB as well 2009-04-05 14:49:27 +00:00
Axel Kittenberger
7fc6677f7e log to syslog (or alternatively to file). 2009-02-28 15:58:06 +00:00
Axel Kittenberger
8271e80ae6 prepare 1.26 bugfix release 2009-01-05 13:45:12 +00:00
Axel Kittenberger
9767279d65 fixed crash with multitargets 2008-12-25 11:45:41 +00:00
Axel Kittenberger
bb9956cc7a moved manpage stuff into doc subdir to less confuse users, fixed some warnings on intrepid ubuntu, fixed some non documented return codes 2008-12-13 22:14:58 +00:00
Axel Kittenberger
040ca04cb6 cleanup xml parser after config file read. distribute compiled manpages. 2008-12-13 18:06:11 +00:00
Axel Kittenberger
fa40f4c1c0 introducing --stubborn, to startup regardless if startup rsyncs work or not.\nsmall fixes 2008-12-13 17:30:52 +00:00
Axel Kittenberger
5c9785b32e "fix" some tabbing 2008-12-05 23:54:13 +00:00
Axel Kittenberger
24d027e0b7 error messages 2008-12-05 23:46:26 +00:00
Axel Kittenberger
cfd444f361 applied remove-direname patch +cosmetics 2008-12-05 23:37:38 +00:00
Axel Kittenberger
1083fa1337 applied multi target patch 2008-12-05 22:27:03 +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
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
f6ce4de561 ... 2008-11-21 10:06:37 +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
5176ae0d54 Introduction lsyncd.conf.xml 2008-11-20 21:38:58 +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
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
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
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
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
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