On Sat, Oct 10, 2015 at 09:21:37PM -0400, Brian Blater wrote: > On Mon, Sep 28, 2015 at 11:11 AM, Lars Ellenberg <lars.ellenb...@linbit.com> > wrote: > > > On Sat, Sep 26, 2015 at 09:28:16PM -0400, Brian Blater wrote: > > > This is what I have in the csync2.cfg: > > > > > > nossl * *; > > > > > > group production { > > > key /etc/csync-production-group.key; > > > host server1; > > > host server2; > > > include /data; > > > exclude /data/conflict; > > > exclude *~ .*; > > > action { > > > pattern /data/*; > > > logfile "/var/log/csync2/csync2.log"; > > > > That would log the output of the *action* > > (but you did not define any). > > > > action being some command to be called > > if csync2 updated a file matching pattern. > > > > intended use case would be a pattern matching some apache conf files, > > and an action that basically does "apachectl graceful", once that > > conf file has been copied over. > > > > > do-local; > > > } > > > auto none; > > > } > > > > > > I'm not getting any logging at all. I can't figure out if the pattern is > > > wrong or what. I basically want csync2 to log what it does in the log > > file, > > > but I can't get it working. > > > > > > Any help would be greatly appreciated. > > > > If you want csync2 to log what it does, > > you have to increase its "verbosity" (add -v...), > > and possibly tell it to use syslog. > > it usually should redirect to syslog anyways, > > if it detects that it has no tty. > > > > > Thanks Lars for your comments. I'm just getting back to this problem > because my day job got overly busy. > > Anyways, what I really want is the information I see when running csync2 > -xv to go to a log file.
your csync2 may be too old. use csync2 2.0, it logs to syslog. -- : Lars Ellenberg : http://www.LINBIT.com | Your Way to High Availability : DRBD, Linux-HA and Pacemaker support and consulting DRBD® and LINBIT® are registered trademarks of LINBIT, Austria. _______________________________________________ Csync2 mailing list Csync2@lists.linbit.com http://lists.linbit.com/mailman/listinfo/csync2