<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">this scrip runs on startup...However I killed the inotifywait process....yet csync2 keep starting itself and inotify is not running.&nbsp; is it part of xinetd i don't think that makes it starup. &nbsp;&nbsp; <br><br>cat notifyscript.sh <br>#!/bin/bash<br>inotifywait -mrq --format %f -e close_write -e create -e delete -e move -e modify /etc /var/www /var/log/apache2 | while read file; do /usr/sbin/csync2 -x &gt;/dev/null 2&gt;&amp;1; done<br>#/usr/sbin/csync2 -x &gt;/dev/null 2&gt;&amp;1;<br><br><br>Thanks,<br><br>Brian Thompson<br>"Whatever it takes, I'll do it"<br>"Success is a matter of a few simple disciplines, practiced every day. Failure is a few errors in<br>judgment, repeated every day."<br>"To avoid criticism, do nothing, say nothing, be nothing."<br><br><br>--- On <b>Tue, 11/9/10, Lars Ellenberg <i>&lt;lars.ellenberg@linbit.com&gt;</i></b>
 wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Lars Ellenberg &lt;lars.ellenberg@linbit.com&gt;<br>Subject: Re: [Csync2] cpu usage csync2 high<br>To: csync2@lists.linbit.com<br>Date: Tuesday, November 9, 2010, 3:39 PM<br><br><div class="plainMail">On Tue, Nov 09, 2010 at 10:43:22AM -0800, B T wrote:<br>&gt; with just csync installed it is using quite a bit of cpu resources.<br>&gt; When it runs shoots to 60 or 70 percent.&nbsp; The server is not loaded yet<br>&gt; but im afraid to put load on it with this kind if cpu usage.&nbsp; Is there<br>&gt; anything I need to do?&nbsp;&nbsp; It is always spawning new process with new<br>&gt; ids.&nbsp; I grep and try to kill as seen below.&nbsp; You can also see top<br>&gt; command below just idle running at 38 percent cpu.&nbsp; I also have xinetd<br>&gt; install and it setup as a service if you need to know that.&nbsp; <br>&gt; <br>&gt; etc#
 ps -ef | grep csync2<br>&gt; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 9288&nbsp;&nbsp; 556 54 13:35 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00:00:01 /usr/sbin/csync2 -x<br>&gt; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 9290&nbsp; 7479&nbsp; 0 13:35 pts/0&nbsp;&nbsp;&nbsp; 00:00:00 grep --color=auto csync2<br>&gt; root@tesweb01:/etc# kill 9288<br>&gt; -bash: kill: (9288) - No such process<br>&gt; root@tesweb01:/etc# ps -ef | grep csync2<br>&gt; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 9295&nbsp;&nbsp; 556 57 13:35 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00:00:01 /usr/sbin/csync2 -x<br>&gt; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 9297&nbsp; 7479&nbsp; 0 13:35 pts/0&nbsp;&nbsp;&nbsp; 00:00:00 grep --color=auto csync2<br>&gt; root@tes:/etc# kill 9295&nbsp;&nbsp;&nbsp; <br><br>I fear you have to disclose a bit more about your setup.<br>Who started that "csync2 -x"?<br>how frequently?<br>csync2 does usually not start itself...<br><br>&gt; top<br>&gt; &nbsp; PID
 USER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PR&nbsp; NI&nbsp; VIRT&nbsp; RES&nbsp; SHR S %CPU %MEM&nbsp;&nbsp;&nbsp; TIME+&nbsp; COMMAND&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&gt; &nbsp;9217 root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 20&nbsp;&nbsp; 0 31328 2356 1376 S&nbsp;&nbsp; 38&nbsp; 0.1&nbsp;&nbsp; 0:01.14 csync2&nbsp; <br>&gt; <br>&gt; /etc/csync2.cfg<br>&gt; # please see the REAMDE file how to configure csync2<br>&gt; nossl * *;<br>&gt; <br>&gt; group tglwebgroup <br>&gt; &nbsp;{<br>&gt; &nbsp;host tesweb01;<br>&gt; &nbsp;host tesweb02;<br>&gt; <br>&gt; &nbsp; key /etc/csync2_ssl_cert.key;<br>&gt; <br>&gt; &nbsp; include /etc/csync2.cfg;<br>&gt; &nbsp; include /etc/apache2/;<br>&gt; &nbsp; include /var/www/;<br>&gt; &nbsp; include /var/log/apache2;<br>&gt; &nbsp; exclude *.log;<br>&gt; &nbsp; action<br>&gt; &nbsp; {<br>&gt; &nbsp; pattern /etc/apache2/apache2.conf;<br>&gt; &nbsp; pattern /etc/apache2/httpd.conf;<br>&gt; &nbsp;
 pattern /etc/apache2/sites-available/*;<br>&gt; &nbsp; <br>&gt; &nbsp; exec "/usr/sbin/apache2ctl graceful";<br>&gt; &nbsp; logfile "/var/log/csync2_action.log";<br>&gt; &nbsp; do-local;<br>&gt; &nbsp; }<br>&gt; &nbsp; backup-directory /var/backups/csync2;<br>&gt; &nbsp; backup-generations 3;<br>&gt; &nbsp; auto none; #no automatic sync<br>&gt; &nbsp; }<br>&gt; <br><br>&gt; _______________________________________________<br>&gt; Csync2 mailing list<br>&gt; <a ymailto="mailto:Csync2@lists.linbit.com" href="/mc/compose?to=Csync2@lists.linbit.com">Csync2@lists.linbit.com</a><br>&gt; <a href="http://lists.linbit.com/mailman/listinfo/csync2" target="_blank">http://lists.linbit.com/mailman/listinfo/csync2</a><br><br><br>-- <br>: Lars Ellenberg<br>: LINBIT | Your Way to High Availability<br>: DRBD/HA support and consulting <a href="http://www.linbit.com" target="_blank">http://www.linbit.com</a><br><br>DRBD® and LINBIT® are registered trademarks of LINBIT,
 Austria.<br>_______________________________________________<br>Csync2 mailing list<br><a ymailto="mailto:Csync2@lists.linbit.com" href="/mc/compose?to=Csync2@lists.linbit.com">Csync2@lists.linbit.com</a><br><a href="http://lists.linbit.com/mailman/listinfo/csync2" target="_blank">http://lists.linbit.com/mailman/listinfo/csync2</a><br></div></blockquote></td></tr></table>