<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Easy Linux Tricks</title>
	<atom:link href="http://chetanjm.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://chetanjm.wordpress.com</link>
	<description>All Usefull tricks with Linux</description>
	<lastBuildDate>Fri, 23 Oct 2009 18:16:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='chetanjm.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Easy Linux Tricks</title>
		<link>http://chetanjm.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://chetanjm.wordpress.com/osd.xml" title="Easy Linux Tricks" />
	<atom:link rel='hub' href='http://chetanjm.wordpress.com/?pushpress=hub'/>
		<item>
		<title>setup amazon elastic load balancer easy</title>
		<link>http://chetanjm.wordpress.com/2009/10/23/setup-amazon-elastic-load-balancer-easy/</link>
		<comments>http://chetanjm.wordpress.com/2009/10/23/setup-amazon-elastic-load-balancer-easy/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 18:14:00 +0000</pubDate>
		<dc:creator>chetanjm</dc:creator>
				<category><![CDATA[ec2 cloud computing]]></category>
		<category><![CDATA[ROR]]></category>
		<category><![CDATA[shell script squid rails]]></category>
		<category><![CDATA[shell scripts]]></category>

		<guid isPermaLink="false">http://chetanjm.wordpress.com/?p=72</guid>
		<description><![CDATA[#! /bin/bash # chetan.muneshwar@gmail.com # Pre-setup Requires : need elb api running with proper keys and AWS account details show_elb() { echo -e &#8220;================= Listed elastic load balancer ================&#8221; echo -e &#8220;&#8221; elb-describe-lbs echo -e &#8220;&#8221; echo -e &#8220;============== Delete ELB option is manual ==============&#8221; echo -e &#8220;&#8221; } create_elb() { echo -e &#8220;Create New [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chetanjm.wordpress.com&amp;blog=8598482&amp;post=72&amp;subd=chetanjm&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>#! /bin/bash<br />
# chetan.muneshwar@gmail.com<br />
# Pre-setup  Requires  : need elb  api running with proper keys and AWS account details </p>
<p>show_elb()<br />
{<br />
	echo -e &#8220;================= Listed elastic load balancer ================&#8221;<br />
	echo -e &#8220;&#8221;<br />
	elb-describe-lbs<br />
	echo -e &#8220;&#8221;<br />
	echo -e &#8220;==============    Delete ELB option is manual    ==============&#8221;<br />
	echo -e &#8220;&#8221;<br />
}</p>
<p>create_elb()<br />
{</p>
<p>echo -e &#8220;Create New ELB Enter elb-name: ENTER to exit: &#8220;<br />
read elb_name<br />
if [ "$elb_name" == "" ] ;then<br />
 echo &#8220;thank you &#8220;<br />
 exit<br />
fi<br />
echo -e &#8220;Enter lb_port:[80] &#8220;<br />
read lbport<br />
if [ "$lbport" == "" ] ;then<br />
 echo -e  &#8220;default port 80 is selected&#8221;<br />
 lbport=80<br />
fi<br />
echo -e &#8220;Enter Instance Port :&#8221;<br />
read inport<br />
if [ "$inport" == "" ] ;then<br />
 echo -e  &#8220;No selection in config flow try again thank you&#8221;<br />
 clear<br />
show_elb<br />
create_elb<br />
fi</p>
<p>echo -e &#8220;Enter Availibilty zones comma/space :  &#8220;<br />
chetu=&#8221;us-east-1a us-east-1b us-east-1c us-east-1d&#8221;<br />
select fname in $chetu;<br />
do<br />
 zoner=` echo &#8211;availability-zones $fname \ $REPLY `<br />
 break  ;<br />
done<br />
echo &#8220;Require ssl with same elb ?: yes / no&#8221;<br />
read ssl_info<br />
 if [ "$ssl_info" == "yes" ] ; then<br />
  echo -e &#8220;Enter ssl Instance Port&#8221;<br />
  read sinport<br />
   if [ "$sinport" == "" ] ;then<br />
    echo -e  &#8220;No selection in config flow try again thank you&#8221;<br />
    clear<br />
    show_elb<br />
    create_elb<br />
  fi<br />
 elb-create-lb $elb_name &#8211;listener &#8220;lb-port=$lbport,instance-port=$inport,protocol=http&#8221; &#8211;listener &#8220;lb-port=443,instance-port=$sinport,protocol=tcp&#8221; $zoner<br />
else<br />
 elb-create-lb $elb_name &#8211;listener &#8220;lb-port=$lbport,instance-port=$inport,protocol=http&#8221; $zoner<br />
fi<br />
}</p>
<p>clear<br />
show_elb<br />
create_elb</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chetanjm.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chetanjm.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chetanjm.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chetanjm.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chetanjm.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chetanjm.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chetanjm.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chetanjm.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chetanjm.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chetanjm.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chetanjm.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chetanjm.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chetanjm.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chetanjm.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chetanjm.wordpress.com&amp;blog=8598482&amp;post=72&amp;subd=chetanjm&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chetanjm.wordpress.com/2009/10/23/setup-amazon-elastic-load-balancer-easy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7e208f9da3289ddce43ad50d40eaa1be?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chetanjm</media:title>
		</media:content>
	</item>
		<item>
		<title>change linux system date time</title>
		<link>http://chetanjm.wordpress.com/2009/09/01/change-linux-system-date-time/</link>
		<comments>http://chetanjm.wordpress.com/2009/09/01/change-linux-system-date-time/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 05:20:11 +0000</pubDate>
		<dc:creator>chetanjm</dc:creator>
				<category><![CDATA[shell scripts]]></category>

		<guid isPermaLink="false">http://chetanjm.wordpress.com/?p=68</guid>
		<description><![CDATA[Setting your time zone In /etc the file, localtime, is a link to or copy of a file containing information about your time zone. Zone information files are usually in /usr/share/zoneinfo but this depends on your distribution. So if your localtime file points to a zone info file that is not your time zone you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chetanjm.wordpress.com&amp;blog=8598482&amp;post=68&amp;subd=chetanjm&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Setting your time zone<br />
In /etc the file, localtime, is a link to or copy of a file containing information about your time zone. Zone information files are usually in /usr/share/zoneinfo but this depends on your distribution. So if your localtime file points to a zone info file that is not your time zone you can change it by browsing the directories in /usr/share/zoneinfo to find your country, then find your city or a city in the same time zone and link localtime to it.</p>
<p>      $ ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime </p>
<p>With Reference to  nice Link :</p>
<p><strong>http://www.hypexr.org/linux_date_time_help.php</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chetanjm.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chetanjm.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chetanjm.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chetanjm.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chetanjm.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chetanjm.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chetanjm.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chetanjm.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chetanjm.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chetanjm.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chetanjm.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chetanjm.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chetanjm.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chetanjm.wordpress.com/68/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chetanjm.wordpress.com&amp;blog=8598482&amp;post=68&amp;subd=chetanjm&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chetanjm.wordpress.com/2009/09/01/change-linux-system-date-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7e208f9da3289ddce43ad50d40eaa1be?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chetanjm</media:title>
		</media:content>
	</item>
		<item>
		<title>Jruby+Rails how to configure</title>
		<link>http://chetanjm.wordpress.com/2009/08/31/jrubyrails-how-to-configure/</link>
		<comments>http://chetanjm.wordpress.com/2009/08/31/jrubyrails-how-to-configure/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 11:19:17 +0000</pubDate>
		<dc:creator>chetanjm</dc:creator>
				<category><![CDATA[ROR]]></category>

		<guid isPermaLink="false">http://chetanjm.wordpress.com/?p=64</guid>
		<description><![CDATA[Jruby vs Ruby-1.8.7 vs Ruby-1.9.x<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chetanjm.wordpress.com&amp;blog=8598482&amp;post=64&amp;subd=chetanjm&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello ,</p>
<p>* Install jdk  1.5 or more .<br />
* Install ANT : http://www.alliedquotes.com/mirrors/apache/ant/binaries/apache-ant-1.7.1-bin.tar.gz<br />
move the extracted folder to /opt/ant<br />
* Download Jruby binary from : http://dist.codehaus.org/jruby/current/jruby-bin-1.3.0.tar.gz<br />
move the folder to  /opt/jruby<br />
* Path setup<br />
edit  :      /root/.bash_profile<br />
add following line<br />
export ANT_HOME=/opt/ant<br />
export JAVA_HOME=/usr/java/default<br />
export JRUBY_HOME=/opt/jruby<br />
PATH=$PATH:$HOME/bin:$JRUBY_HOME/bin:$JAVA_HOME/bin<br />
export PATH</p>
<p>* Test Install</p>
<p>root@localhost chetu]# which jruby<br />
/opt/jruby/bin/jruby</p>
<p>root@localhost chetu]# which java<br />
/usr/java/default/bin/java</p>
<p>root@localhost chetu]# jruby -v<br />
jruby 1.3.0 (ruby 1.8.6p287) (2009-06-03 5dc2e22) (Java HotSpot(TM) Client VM 1.6.0_02) [i386-java]</p>
<p>* To Test rest of  jruby app Please refer this nice link : <strong>http://blog.emptyway.com/2008/04/08/120-seconds-guide-to-jruby-on-rails/#comment-37422</strong><br />
+</p>
<p>http://ant.apache.org/manual/index.html</p>
<p>Best<br />
chetaM</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chetanjm.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chetanjm.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chetanjm.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chetanjm.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chetanjm.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chetanjm.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chetanjm.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chetanjm.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chetanjm.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chetanjm.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chetanjm.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chetanjm.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chetanjm.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chetanjm.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chetanjm.wordpress.com&amp;blog=8598482&amp;post=64&amp;subd=chetanjm&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chetanjm.wordpress.com/2009/08/31/jrubyrails-how-to-configure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7e208f9da3289ddce43ad50d40eaa1be?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chetanjm</media:title>
		</media:content>
	</item>
		<item>
		<title>memcache rails sessions</title>
		<link>http://chetanjm.wordpress.com/2009/08/21/memcache-rails-sessions/</link>
		<comments>http://chetanjm.wordpress.com/2009/08/21/memcache-rails-sessions/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 07:34:06 +0000</pubDate>
		<dc:creator>chetanjm</dc:creator>
				<category><![CDATA[ROR]]></category>

		<guid isPermaLink="false">http://chetanjm.wordpress.com/?p=60</guid>
		<description><![CDATA[Hello guys , * yum install memcache OR form source http://www.danga.com/memcached/download.bml * Setting config/environment.rb config.action_controller.session_store = :mem_cache_store memcache_options = { :compression =&#62; true, :debug =&#62; false, :namespace =&#62; &#8220;mem-#{RAILS_ENV}&#8221;, :readonly =&#62; false, :urlencode =&#62; false } memcache_servers = [ '127.0.0.1:11811' ] CACHE = MemCache.new(memcache_options) CACHE.servers = memcache_servers ActionController::Base.session_options[:cache] = CACHE * Start Memcached on console [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chetanjm.wordpress.com&amp;blog=8598482&amp;post=60&amp;subd=chetanjm&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello guys ,</p>
<p>* yum install memcache OR form source  http://www.danga.com/memcached/download.bml</p>
<p>* Setting config/environment.rb </p>
<p>config.action_controller.session_store = :mem_cache_store</p>
<p>memcache_options = {<br />
   :compression =&gt; true,<br />
   :debug =&gt; false,<br />
   :namespace =&gt; &#8220;mem-#{RAILS_ENV}&#8221;,<br />
   :readonly =&gt; false,<br />
   :urlencode =&gt; false<br />
}</p>
<p>memcache_servers = [ '127.0.0.1:11811' ]</p>
<p>CACHE = MemCache.new(memcache_options)<br />
CACHE.servers = memcache_servers<br />
ActionController::Base.session_options[:cache] = CACHE</p>
<p>* Start Memcached on console OR use mecached.ctl as per convenience :</p>
<p>memcached -d -l 127.0.0.1 -p 11811 -m 512 -P /var/memcached/memcached_2.pid -u root </p>
<p>Yap its works</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chetanjm.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chetanjm.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chetanjm.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chetanjm.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chetanjm.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chetanjm.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chetanjm.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chetanjm.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chetanjm.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chetanjm.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chetanjm.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chetanjm.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chetanjm.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chetanjm.wordpress.com/60/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chetanjm.wordpress.com&amp;blog=8598482&amp;post=60&amp;subd=chetanjm&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chetanjm.wordpress.com/2009/08/21/memcache-rails-sessions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7e208f9da3289ddce43ad50d40eaa1be?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chetanjm</media:title>
		</media:content>
	</item>
		<item>
		<title>reiserfs squid howto</title>
		<link>http://chetanjm.wordpress.com/2009/08/20/reiserfs-squid-howto/</link>
		<comments>http://chetanjm.wordpress.com/2009/08/20/reiserfs-squid-howto/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 11:00:43 +0000</pubDate>
		<dc:creator>chetanjm</dc:creator>
				<category><![CDATA[Squid+iptables]]></category>

		<guid isPermaLink="false">http://chetanjm.wordpress.com/?p=57</guid>
		<description><![CDATA[
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));


try {
var pageTracker = _gat._getTracker("UA-10313393-1");
pageTracker._trackPageview();
} catch(err) {}<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chetanjm.wordpress.com&amp;blog=8598482&amp;post=57&amp;subd=chetanjm&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>#! /bin/bash<br />
# chetan.muneshwar@gmail.com<br />
# squid cache folder assumed mounted with some other FS .<br />
echo &#8221; &#8220;<br />
if [ -d "/usr/local/squid" ] ;then</p>
<p>        rpm -Uvh /root/reiserfs-utils-3.6.19-2.4.1.i386.rpm<br />
        rpm -Uvh /root/kernel-2.6.18-128.1.6.el5.centos.plus.i686.rpm<br />
        locca=`df -lh |grep -r &#8216;cache&#8217; |cut -d &#8221; &#8221; -f 1`<br />
        if [ "$locca" == "" ] ;then<br />
                echo &#8220;cache Partition not mounted&#8221;<br />
        else<br />
                umount $locca<br />
                mkreiserfs -q $locca<br />
                echo &#8220;ReiserFS partion done&#8221;<br />
                mv /usr/local/squid/var/cache /usr/local/squid/var/cache.bak<br />
                mkdir -p /usr/local/squid/var/cache</p>
<p>                mount -t reiserfs $locca /usr/local/squid/var/cache<br />
                echo &#8220;Mounted successfully&#8221;<br />
                mv /usr/local/squid/var/cache.bak/* /usr/local/squid/var/cache/<br />
                chown -R squid:squid /usr/local/squid/var/cache<br />
                chmod -R 0750 /usr/local/squid/var/cache<br />
                echo &#8220;cache setup done&#8221;<br />
                grep -Ev &#8216;cache&#8217; /etc/fstab &gt;/etc/newfstab<br />
                mv /etc/fstab /etc/fstab.bakup &amp;&amp; cp /etc/fstab.bakup /etc/fstab.bakup.original<br />
                echo &#8221; $locca     /usr/local/squid/var/cache        reiserfs  notail,noatime   1   2&#8243; &gt;&gt;/etc/newfstab<br />
                mv /etc/newfstab /etc/fstab<br />
                echo &#8220;fstab  updated with new mount info &#8220;<br />
        fi<br />
else<br />
        echo &#8220;Exiting squid not found &#8220;<br />
fi</p>
<p>echo &#8220;Cool you must reboot the system to take effect &#8220;<br />
~</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chetanjm.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chetanjm.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chetanjm.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chetanjm.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chetanjm.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chetanjm.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chetanjm.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chetanjm.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chetanjm.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chetanjm.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chetanjm.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chetanjm.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chetanjm.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chetanjm.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chetanjm.wordpress.com&amp;blog=8598482&amp;post=57&amp;subd=chetanjm&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chetanjm.wordpress.com/2009/08/20/reiserfs-squid-howto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7e208f9da3289ddce43ad50d40eaa1be?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chetanjm</media:title>
		</media:content>
	</item>
		<item>
		<title>Custom iso cd + kickstart + Centos</title>
		<link>http://chetanjm.wordpress.com/2009/08/20/custom-iso-cd-kickstart-centos/</link>
		<comments>http://chetanjm.wordpress.com/2009/08/20/custom-iso-cd-kickstart-centos/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 10:20:20 +0000</pubDate>
		<dc:creator>chetanjm</dc:creator>
				<category><![CDATA[shell scripts]]></category>

		<guid isPermaLink="false">http://chetanjm.wordpress.com/?p=55</guid>
		<description><![CDATA[yep follow the steps * yum install anaconda-runtime createrepo yum-utils anaconda anaconda-help busybox-anaconda mkisofs . * Mount Centos original cd+dvd copy contents to folder. select the rpms along with dependencies . Please Refer : http://sipx-wiki.calivia.com/index.php/A_Kickstart_CD_for_sipX_on_CentOS Next to make iso ready : Here is that shell script . #! /bin/bash cd /myos/ discinfo=`head -1 .discinfo` createrepo [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chetanjm.wordpress.com&amp;blog=8598482&amp;post=55&amp;subd=chetanjm&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>yep follow the steps </p>
<p>* yum install anaconda-runtime createrepo yum-utils anaconda anaconda-help busybox-anaconda mkisofs .</p>
<p>* Mount Centos original cd+dvd copy contents to folder. select the rpms along with dependencies .<br />
Please Refer : http://sipx-wiki.calivia.com/index.php/A_Kickstart_CD_for_sipX_on_CentOS </p>
<p>Next to make iso ready :<br />
Here is that shell script .</p>
<p>#! /bin/bash<br />
cd /myos/<br />
discinfo=`head -1 .discinfo`<br />
createrepo -u “media://$discinfo” -g repodata/comps.xml /myos<br />
isofilename=/root/2d/myosnew.iso<br />
mkisofs -r -R -J -T -v \<br />
-no-emul-boot -boot-load-size 4 -boot-info-table \<br />
-V “SimpleWall″ -p “myos-0.1” \<br />
-A “myos″ \<br />
-b isolinux/isolinux.bin -c isolinux/boot.cat \<br />
-x “lost+found” -o $isofilename /myos<br />
/usr/lib/anaconda-runtime/implantisomd5 $isofilename<br />
~</p>
<p>Burn it , its rocks .</p>
<p>Note : kickstart configuration  file plays important role in automated installer </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chetanjm.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chetanjm.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chetanjm.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chetanjm.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chetanjm.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chetanjm.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chetanjm.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chetanjm.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chetanjm.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chetanjm.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chetanjm.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chetanjm.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chetanjm.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chetanjm.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chetanjm.wordpress.com&amp;blog=8598482&amp;post=55&amp;subd=chetanjm&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chetanjm.wordpress.com/2009/08/20/custom-iso-cd-kickstart-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7e208f9da3289ddce43ad50d40eaa1be?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chetanjm</media:title>
		</media:content>
	</item>
		<item>
		<title>php code encryption using php-screw</title>
		<link>http://chetanjm.wordpress.com/2009/08/13/php-code-encryption-using-php-screw/</link>
		<comments>http://chetanjm.wordpress.com/2009/08/13/php-code-encryption-using-php-screw/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 06:14:25 +0000</pubDate>
		<dc:creator>chetanjm</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://chetanjm.wordpress.com/?p=51</guid>
		<description><![CDATA[4. Installation. (1) Unpack php_screw-1.5.tgz. (2) Execute the following command with directory php_screw-1.5 phpize ./configure (3) Customize encryption / decryption vi my_screw.h &#8212; Please change the encryption SEED key (pm9screw_mycryptkey) into the values according to what you like. The encryption will be harder to break, if you add more values to the encryption SEED array. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chetanjm.wordpress.com&amp;blog=8598482&amp;post=51&amp;subd=chetanjm&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>4. Installation.</p>
<p> (1) Unpack php_screw-1.5.tgz.</p>
<p> (2) Execute the following command with directory php_screw-1.5</p>
<p>       phpize<br />
       ./configure</p>
<p> (3) Customize encryption / decryption</p>
<p>       vi my_screw.h</p>
<p>       &#8212; Please change the encryption SEED key (pm9screw_mycryptkey) into the<br />
          values according to what you like.<br />
          The encryption will be harder to break, if you add more values to the<br />
	  encryption SEED array. However, the size of the SEED is unrelated to<br />
	  the time of the decrypt processing.</p>
<p>       *  If you can read and understand the source code, to modify an original<br />
          encryption logic will be possible. But in general, this should not<br />
	  be necessary.</p>
<p>       OPTIONAL: Encrypted scripts get a stamp added to the beginning of the<br />
		 file. If you like, you may change this stamp defined by<br />
		 PM9SCREW and PM9SCREW_LEN in php_screw.h. PM9SCREW_LEN must<br />
		 be less than or equal to the size of PM9SCREW.</p>
<p> (4) Compile the decryptor</p>
<p>       make</p>
<p> (5) Copy modules/php_screw.so into an extension directory.</p>
<p>       ex) cp modules/php_screw.so /usr/lib/php/modules/php_screw.so</p>
<p> (6) Add the next line to php.ini.</p>
<p>       extension=php_screw.so</p>
<p> (7) Restart the httpd daemon.</p>
<p> (8) Compile the encryption tool</p>
<p>       cd tools<br />
       make</p>
<p> (9) Copy the encryptor (&#8220;screw&#8221;) into an appropriate directory.</p>
<p>ref &amp; download At : http://sourceforge.net/projects/php-screw/</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chetanjm.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chetanjm.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chetanjm.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chetanjm.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chetanjm.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chetanjm.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chetanjm.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chetanjm.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chetanjm.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chetanjm.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chetanjm.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chetanjm.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chetanjm.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chetanjm.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chetanjm.wordpress.com&amp;blog=8598482&amp;post=51&amp;subd=chetanjm&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chetanjm.wordpress.com/2009/08/13/php-code-encryption-using-php-screw/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7e208f9da3289ddce43ad50d40eaa1be?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chetanjm</media:title>
		</media:content>
	</item>
		<item>
		<title>rails-maintenance-page-with-images-and-stylesheets</title>
		<link>http://chetanjm.wordpress.com/2009/08/13/rails-maintenance-page-with-images-and-stylesheets/</link>
		<comments>http://chetanjm.wordpress.com/2009/08/13/rails-maintenance-page-with-images-and-stylesheets/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 05:47:32 +0000</pubDate>
		<dc:creator>chetanjm</dc:creator>
				<category><![CDATA[ROR]]></category>

		<guid isPermaLink="false">http://chetanjm.wordpress.com/?p=48</guid>
		<description><![CDATA[# Check for maintenance file and allow images, styles and javascripts RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f RewriteCond %{SCRIPT_FILENAME} !maintenance.html RewriteRule "^/(images&#124;stylesheets&#124;javascripts)/?(.*)" "$0" [L] Its works Ref :http://bjhess.com/blog/2007/08/06/rails-maintenance-page-with-images-and-styles/<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chetanjm.wordpress.com&amp;blog=8598482&amp;post=48&amp;subd=chetanjm&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre># Check for maintenance file and allow images, styles and javascripts
RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteRule "^/(images|stylesheets|javascripts)/?(.*)" "$0" [L]

Its works
Ref :http://bjhess.com/blog/2007/08/06/rails-maintenance-page-with-images-and-styles/
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chetanjm.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chetanjm.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chetanjm.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chetanjm.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chetanjm.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chetanjm.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chetanjm.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chetanjm.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chetanjm.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chetanjm.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chetanjm.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chetanjm.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chetanjm.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chetanjm.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chetanjm.wordpress.com&amp;blog=8598482&amp;post=48&amp;subd=chetanjm&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chetanjm.wordpress.com/2009/08/13/rails-maintenance-page-with-images-and-stylesheets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7e208f9da3289ddce43ad50d40eaa1be?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chetanjm</media:title>
		</media:content>
	</item>
		<item>
		<title>Deploying with Capistrano passanger git</title>
		<link>http://chetanjm.wordpress.com/2009/08/13/gitcapistranodeploy/</link>
		<comments>http://chetanjm.wordpress.com/2009/08/13/gitcapistranodeploy/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 05:30:20 +0000</pubDate>
		<dc:creator>chetanjm</dc:creator>
				<category><![CDATA[ROR]]></category>

		<guid isPermaLink="false">http://chetanjm.wordpress.com/?p=38</guid>
		<description><![CDATA[# Deploy.rb for using git set :application, &#8220;app.com&#8221; set :repository,  &#8220;root@mapppme.com:/usr/local/src/100809&#8243; set :scm, :git set :scm_username, &#8220;root&#8221; set :runner, &#8220;root&#8221; set :use_sudo, false set :branch, &#8220;master&#8221; set :deploy_via, :copy set :git_shallow_clone, 1 default_run_options[:pty] = true set :keep_releases, 15 desc &#8220;App-production&#8221; task :production do puts &#8220;*** Deploying to the 33[1;41m  production   33[0m servers!" set :deploy_to,    "/mnt/www/#{application}" [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chetanjm.wordpress.com&amp;blog=8598482&amp;post=38&amp;subd=chetanjm&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p># Deploy.rb for using git</p>
<p>set :application, &#8220;app.com&#8221;<br />
set :repository,  &#8220;root@mapppme.com:/usr/local/src/100809&#8243;<br />
set :scm, :git<br />
set :scm_username, &#8220;root&#8221;<br />
set :runner, &#8220;root&#8221;<br />
set :use_sudo, false<br />
set :branch, &#8220;master&#8221;<br />
set :deploy_via, :copy<br />
set :git_shallow_clone, 1<br />
default_run_options[:pty] = true<br />
set :keep_releases, 15</p>
<p>desc &#8220;App-production&#8221;<br />
task :production do<br />
puts &#8220;*** Deploying to the 33[1;41m  production   33[0m servers!"</p>
<p>set :deploy_to,    "/mnt/www/#{application}"<br />
set :deploy_via,    :copy<br />
role :web, "175.141.11.41"<br />
role :app, "175.141.11.41"<br />
role :db,  "175.141.11.41", :primary =&gt; true<br />
end</p>
<p>desc "Tasks to execute after code update"<br />
task :after_update_code, :roles =&gt; [:app, :db, :web] do</p>
<p>end</p>
<p>namespace :deploy do</p>
<p>set :user, &#8220;root&#8221;<br />
set :password,&#8221;sdfggddg_df2009!&#8221;</p>
<p>desc&#8221;tail 100  line of log&#8221;<br />
task :tail_log, :roles =&gt; [:app, :db, :web] ,:only =&gt; { :primary =&gt; true } do<br />
run &#8220;tail -100 #{deploy_to}/shared/log/production.log&#8221;<br />
end</p>
<p>desc&#8221; log clear &#8220;<br />
task :clear_log, :roles =&gt; [:app, :db, :web] ,:only =&gt; { :primary =&gt; true } do<br />
run &#8220;cd #{deploy_to}/current/ &amp;&amp; rake log:clear&#8221;<br />
end</p>
<p>end</p>
<p>###########################################################################################</p>
<p>After git with cap deploy : branch changed to deploy , how can we make update in case very minor change .</p>
<p>solution :</p>
<p># git branch</p>
<p>*deploy</p>
<p>master</p>
<p># git branch master</p>
<p># git chekout</p>
<p># git pull</p>
<p>restart service</p>
<p>cool its done .</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chetanjm.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chetanjm.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chetanjm.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chetanjm.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chetanjm.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chetanjm.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chetanjm.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chetanjm.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chetanjm.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chetanjm.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chetanjm.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chetanjm.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chetanjm.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chetanjm.wordpress.com/38/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chetanjm.wordpress.com&amp;blog=8598482&amp;post=38&amp;subd=chetanjm&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chetanjm.wordpress.com/2009/08/13/gitcapistranodeploy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7e208f9da3289ddce43ad50d40eaa1be?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chetanjm</media:title>
		</media:content>
	</item>
		<item>
		<title>Apache running out of semaphores? + apache dead semaphore lock</title>
		<link>http://chetanjm.wordpress.com/2009/08/13/apache-running-out-of-semaphores/</link>
		<comments>http://chetanjm.wordpress.com/2009/08/13/apache-running-out-of-semaphores/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 05:11:46 +0000</pubDate>
		<dc:creator>chetanjm</dc:creator>
				<category><![CDATA[shell scripts]]></category>

		<guid isPermaLink="false">http://chetanjm.wordpress.com/?p=33</guid>
		<description><![CDATA[#!/bin/bash TIMESTAMP=$(date +%Y-%m-%d) TIMESTAMP1=$(date +%Y-%m-%d-%H-%M-%S) INSTANCE=$(pii httpd) NM_PROCESS=`echo $INSTANCE &#124;wc -w` echo $NM_PROCESS if [ $NM_PROCESS -le 1 ];then for ipsemId in $(ipcs -s &#124; grep apache &#124; cut -f 2 -d &#8216; &#8216;); do ipcrm -s $ipsemId; done /etc/init.d/httpd restart echo &#8221; SERVER Apache Overload and Restarted&#8221; &#124; mail -s SERVER Apache Overload and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chetanjm.wordpress.com&amp;blog=8598482&amp;post=33&amp;subd=chetanjm&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>#!/bin/bash<br />
TIMESTAMP=$(date +%Y-%m-%d)<br />
TIMESTAMP1=$(date +%Y-%m-%d-%H-%M-%S)<br />
INSTANCE=$(pii httpd)<br />
NM_PROCESS=`echo $INSTANCE |wc -w`<br />
echo $NM_PROCESS<br />
if [ $NM_PROCESS -le 1 ];then<br />
for ipsemId in $(ipcs -s | grep apache | cut -f 2 -d &#8216; &#8216;); do ipcrm -s $ipsemId; done<br />
/etc/init.d/httpd restart<br />
echo &#8221; SERVER Apache Overload and Restarted&#8221; | mail -s SERVER Apache Overload and Restarted Successfully.&#8221; admin@xyz.com</p>
<p>else<br />
echo &#8220;OK apache running with multiple processes&#8221;<br />
fi<br />
echo $INSTANCE</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chetanjm.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chetanjm.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chetanjm.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chetanjm.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chetanjm.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chetanjm.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chetanjm.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chetanjm.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chetanjm.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chetanjm.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chetanjm.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chetanjm.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chetanjm.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chetanjm.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chetanjm.wordpress.com&amp;blog=8598482&amp;post=33&amp;subd=chetanjm&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chetanjm.wordpress.com/2009/08/13/apache-running-out-of-semaphores/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7e208f9da3289ddce43ad50d40eaa1be?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chetanjm</media:title>
		</media:content>
	</item>
	</channel>
</rss>
