<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>Comments on: svnserve Init script</title> <atom:link href="http://mohanjith.net/blog/2007/07/svnserve-init-script.html/feed" rel="self" type="application/rss+xml" /><link>http://mohanjith.net/blog/2007/07/svnserve-init-script.html</link> <description>MOHA blogging news and thoughts...</description> <lastBuildDate>Thu, 22 Sep 2011 17:18:00 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>By: Jimson</title><link>http://mohanjith.net/blog/2007/07/svnserve-init-script.html/comment-page-1#comment-19880</link> <dc:creator>Jimson</dc:creator> <pubDate>Wed, 08 Sep 2010 05:26:25 +0000</pubDate> <guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=16#comment-19880</guid> <description>Thanks Mohanjith for the great post. This helped me out with my problem</description> <content:encoded><![CDATA[<p>Thanks Mohanjith for the great post. This helped me out with my problem</p> ]]></content:encoded> </item> <item><title>By: Martin Duclos</title><link>http://mohanjith.net/blog/2007/07/svnserve-init-script.html/comment-page-1#comment-18059</link> <dc:creator>Martin Duclos</dc:creator> <pubDate>Wed, 23 Jun 2010 03:08:15 +0000</pubDate> <guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=16#comment-18059</guid> <description>Works Well!Added a lockfile variable to be able to handle something like prog=&quot;/opt/subversion/bin/svnserve-daemon&quot; to go along with svn+ssh</description> <content:encoded><![CDATA[<p>Works Well!</p><p>Added a lockfile variable to be able to handle something like prog=&#8221;/opt/subversion/bin/svnserve-daemon&#8221; to go along with svn+ssh</p> ]]></content:encoded> </item> <item><title>By: Andreas Rückert</title><link>http://mohanjith.net/blog/2007/07/svnserve-init-script.html/comment-page-1#comment-9294</link> <dc:creator>Andreas Rückert</dc:creator> <pubDate>Fri, 04 Sep 2009 16:00:54 +0000</pubDate> <guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=16#comment-9294</guid> <description>Hi!Thanks for your great init-script. Unfortunately, it caused some problems on my debian server.
&#039;success&#039; and &#039;failure&#039; don&#039;t seem to exist.
I also ran into the awk problem and replace this code with some bash code:obtainpid() {
pidstr=`pgrep $prog`
IFS=&quot; &quot;
pidarray=($pidstr)
pidcount=${#pidarray}
if [ ! -r &quot;$pidfile&quot; ] &amp;&amp; [ $pidcount -ge 2 ]; then
pid=${pidarray[0]}
echo $prog is already running and it was not started by the init script.
fi
}Thanks again!Ciao,
Andreas</description> <content:encoded><![CDATA[<p>Hi!</p><p>Thanks for your great init-script. Unfortunately, it caused some problems on my debian server.<br
/> &#8216;success&#8217; and &#8216;failure&#8217; don&#8217;t seem to exist.<br
/> I also ran into the awk problem and replace this code with some bash code:</p><p>obtainpid() {<br
/> pidstr=`pgrep $prog`<br
/> IFS=&#8221; &#8221;<br
/> pidarray=($pidstr)<br
/> pidcount=${#pidarray}<br
/> if [ ! -r "$pidfile" ] &amp;&amp; [ $pidcount -ge 2 ]; then<br
/> pid=${pidarray[0]}<br
/> echo $prog is already running and it was not started by the init script.<br
/> fi<br
/> }</p><p>Thanks again!</p><p>Ciao,<br
/> Andreas</p> ]]></content:encoded> </item> <item><title>By: IchBin</title><link>http://mohanjith.net/blog/2007/07/svnserve-init-script.html/comment-page-1#comment-4676</link> <dc:creator>IchBin</dc:creator> <pubDate>Mon, 18 May 2009 14:41:45 +0000</pubDate> <guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=16#comment-4676</guid> <description>Thanks for this script! I found you via a google search, and the script works great on my CentOS5 server.</description> <content:encoded><![CDATA[<p>Thanks for this script! I found you via a google search, and the script works great on my CentOS5 server.</p> ]]></content:encoded> </item> <item><title>By: S H Mohanjith</title><link>http://mohanjith.net/blog/2007/07/svnserve-init-script.html/comment-page-1#comment-1134</link> <dc:creator>S H Mohanjith</dc:creator> <pubDate>Sun, 21 Dec 2008 18:03:41 +0000</pubDate> <guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=16#comment-1134</guid> <description>Thanks for pointing out. :) I&#039;ll post a fixed version.</description> <content:encoded><![CDATA[<p>Thanks for pointing out. <img
src='http://cdn.mohanjith.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> I&#8217;ll post a fixed version.</p> ]]></content:encoded> </item> <item><title>By: dandin1</title><link>http://mohanjith.net/blog/2007/07/svnserve-init-script.html/comment-page-1#comment-1133</link> <dc:creator>dandin1</dc:creator> <pubDate>Sun, 21 Dec 2008 17:54:32 +0000</pubDate> <guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=16#comment-1133</guid> <description>Like others, I got &quot;awk: fatal: attempt to use array `a&#039; in a scalar context&quot;.  According to http://objectmix.com/awk/361598-gawk-length-array-question.html , it is a bug in awk that has now been fixed.  A work around is to replace &quot;length&quot; by &quot;asort&quot;, which also returns the length of an array.</description> <content:encoded><![CDATA[<p>Like others, I got &#8220;awk: fatal: attempt to use array `a&#8217; in a scalar context&#8221;.  According to <a
href="http://objectmix.com/awk/361598-gawk-length-array-question.html" rel="nofollow">http://objectmix.com/awk/361598-gawk-length-array-question.html</a> , it is a bug in awk that has now been fixed.  A work around is to replace &#8220;length&#8221; by &#8220;asort&#8221;, which also returns the length of an array.</p> ]]></content:encoded> </item> <item><title>By: emostoyanov</title><link>http://mohanjith.net/blog/2007/07/svnserve-init-script.html/comment-page-1#comment-50</link> <dc:creator>emostoyanov</dc:creator> <pubDate>Wed, 15 Oct 2008 09:25:00 +0000</pubDate> <guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=16#comment-50</guid> <description>Great, helped me on the spot! Thanks a ton Mohanjith&#039;s. My system - CentOS 5.2, svnserve, version 1.4.2 (r22196) compiled Mar 14 2007, 20:55:55</description> <content:encoded><![CDATA[<p>Great, helped me on the spot! Thanks a ton Mohanjith&#8217;s. My system &#8211; CentOS 5.2, svnserve, version 1.4.2 (r22196) compiled Mar 14 2007, 20:55:55</p> ]]></content:encoded> </item> <item><title>By: Ken</title><link>http://mohanjith.net/blog/2007/07/svnserve-init-script.html/comment-page-1#comment-39</link> <dc:creator>Ken</dc:creator> <pubDate>Tue, 01 Jul 2008 04:15:00 +0000</pubDate> <guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=16#comment-39</guid> <description>dave, I had the same problem - it was because an old copy of svnserve was in my /usr/bin directory.  I deleted that and linked it to the one built in /usr/local/bin and the problem went away.</description> <content:encoded><![CDATA[<p>dave, I had the same problem &#8211; it was because an old copy of svnserve was in my /usr/bin directory.  I deleted that and linked it to the one built in /usr/local/bin and the problem went away.</p> ]]></content:encoded> </item> <item><title>By: Chris</title><link>http://mohanjith.net/blog/2007/07/svnserve-init-script.html/comment-page-1#comment-37</link> <dc:creator>Chris</dc:creator> <pubDate>Tue, 27 May 2008 19:42:00 +0000</pubDate> <guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=16#comment-37</guid> <description>Excellent post. Your instructions worked perfectly for me in Fedora 8. Minor nitpick though, the chkconfig command is actually:&lt;br/&gt;&lt;br/&gt;/sbin/chkconfig --add svnserve&lt;br/&gt;&lt;br/&gt;Also, please please please post your script ass a patch to the subversion package in Bugzilla so it&#039;ll get added to the standard repo. I *hate* having to manually hack things just to get basic functionality, even if it is simple. There&#039;s absolutely no reason why this init.d script shouldn&#039;t be installed alongside svnserve.</description> <content:encoded><![CDATA[<p>Excellent post. Your instructions worked perfectly for me in Fedora 8. Minor nitpick though, the chkconfig command is actually:</p><p>/sbin/chkconfig &#8211;add svnserve</p><p>Also, please please please post your script ass a patch to the subversion package in Bugzilla so it&#8217;ll get added to the standard repo. I *hate* having to manually hack things just to get basic functionality, even if it is simple. There&#8217;s absolutely no reason why this init.d script shouldn&#8217;t be installed alongside svnserve.</p> ]]></content:encoded> </item> <item><title>By: roamdave</title><link>http://mohanjith.net/blog/2007/07/svnserve-init-script.html/comment-page-1#comment-36</link> <dc:creator>roamdave</dc:creator> <pubDate>Tue, 27 May 2008 13:25:00 +0000</pubDate> <guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=16#comment-36</guid> <description>I tried to use this script and added the change that kevin suggested. But now I get &quot;&quot;invalid option: --pid-file&quot; when I run start. I found that this is an option for daemon. But I cannot work out why it is a problem here. I&#039;d like to start the process as the svn user too, not sure how to change the script to run the svnserve as svn user.</description> <content:encoded><![CDATA[<p>I tried to use this script and added the change that kevin suggested. But now I get &#8220;&#8221;invalid option: &#8211;pid-file&#8221; when I run start. I found that this is an option for daemon. But I cannot work out why it is a problem here. I&#8217;d like to start the process as the svn user too, not sure how to change the script to run the svnserve as svn user.</p> ]]></content:encoded> </item> <item><title>By: Kevin</title><link>http://mohanjith.net/blog/2007/07/svnserve-init-script.html/comment-page-1#comment-20</link> <dc:creator>Kevin</dc:creator> <pubDate>Tue, 05 Feb 2008 17:05:00 +0000</pubDate> <guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=16#comment-20</guid> <description>Don,&lt;br/&gt;&lt;br/&gt;I had the same experience.  I just changed line 39 in obtainpid() to:&lt;br/&gt;&lt;br/&gt;pidcount=`awk -v name=&quot;$pidstr&quot; &#039;BEGIN{print split(name,a,&quot; &quot;);}&#039;`</description> <content:encoded><![CDATA[<p>Don,</p><p>I had the same experience.  I just changed line 39 in obtainpid() to:</p><p>pidcount=`awk -v name=&#8221;$pidstr&#8221; &#8216;BEGIN{print split(name,a,&#8221; &#8220;);}&#8217;`</p> ]]></content:encoded> </item> <item><title>By: Don</title><link>http://mohanjith.net/blog/2007/07/svnserve-init-script.html/comment-page-1#comment-17</link> <dc:creator>Don</dc:creator> <pubDate>Thu, 24 Jan 2008 13:58:00 +0000</pubDate> <guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=16#comment-17</guid> <description>Thanks for the script as our folks were looking for exactly this. We are using this on CentOS 4.5 and all went well until I used service to start svnserve. This is the result:&lt;br/&gt;&lt;br/&gt;[root@newmicros init.d]# service svnserve start&lt;br/&gt;awk: cmd. line:1: fatal: attempt to use array `a&#039; in a scalar context&lt;br/&gt;/etc/init.d/svnserve: line 40: [: -ge: unary operator expected&lt;br/&gt;Starting Subversion Daemon (svnserve):                     [  OK  ]&lt;br/&gt;&lt;br/&gt;As you can see svn started and was verified with ps as running and having appropriate options. Any help?&lt;br/&gt;&lt;br/&gt;thanks&lt;br/&gt;don</description> <content:encoded><![CDATA[<p>Thanks for the script as our folks were looking for exactly this. We are using this on CentOS 4.5 and all went well until I used service to start svnserve. This is the result:</p><p>[root@newmicros init.d]# service svnserve start<br
/>awk: cmd. line:1: fatal: attempt to use array `a&#8217; in a scalar context<br
/>/etc/init.d/svnserve: line 40: [: -ge: unary operator expected<br
/>Starting Subversion Daemon (svnserve):                     [  OK  ]</p><p>As you can see svn started and was verified with ps as running and having appropriate options. Any help?</p><p>thanks<br
/>don</p> ]]></content:encoded> </item> <item><title>By: mohanjith</title><link>http://mohanjith.net/blog/2007/07/svnserve-init-script.html/comment-page-1#comment-10</link> <dc:creator>mohanjith</dc:creator> <pubDate>Wed, 09 Jan 2008 17:58:00 +0000</pubDate> <guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=16#comment-10</guid> <description>Thanks for noticing the issue. I have a link to download the script as plain text in the blog post itself.</description> <content:encoded><![CDATA[<p>Thanks for noticing the issue. I have a link to download the script as plain text in the blog post itself.</p> ]]></content:encoded> </item> <item><title>By: Greg</title><link>http://mohanjith.net/blog/2007/07/svnserve-init-script.html/comment-page-1#comment-9</link> <dc:creator>Greg</dc:creator> <pubDate>Thu, 27 Dec 2007 19:17:00 +0000</pubDate> <guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=16#comment-9</guid> <description>if [ ! -r &quot;$pidfile&quot; ] &amp;&amp; [ $pidcount -ge 2 ];&lt;br/&gt;&lt;br/&gt;This line (40) contains a typo, should have just the &amp;&amp; not the HTML amp;amp; bits.</description> <content:encoded><![CDATA[<p>if [ ! -r "$pidfile" ] &&amp;amp; [ $pidcount -ge 2 ];</p><p>This line (40) contains a typo, should have just the &#038;&#038; not the HTML amp;amp; bits.</p> ]]></content:encoded> </item> <item><title>By: Arthur</title><link>http://mohanjith.net/blog/2007/07/svnserve-init-script.html/comment-page-1#comment-8</link> <dc:creator>Arthur</dc:creator> <pubDate>Thu, 06 Dec 2007 08:00:00 +0000</pubDate> <guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=16#comment-8</guid> <description>Thanks for the script, got it running on my centos 5 server.&lt;br/&gt;Now back to coding :)</description> <content:encoded><![CDATA[<p>Thanks for the script, got it running on my centos 5 server.<br
/>Now back to coding <img
src='http://cdn.mohanjith.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: mohanjith</title><link>http://mohanjith.net/blog/2007/07/svnserve-init-script.html/comment-page-1#comment-6</link> <dc:creator>mohanjith</dc:creator> <pubDate>Sun, 05 Aug 2007 08:54:00 +0000</pubDate> <guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=16#comment-6</guid> <description>Thanks Raj for the suggestion.</description> <content:encoded><![CDATA[<p>Thanks Raj for the suggestion.</p> ]]></content:encoded> </item> <item><title>By: Raj</title><link>http://mohanjith.net/blog/2007/07/svnserve-init-script.html/comment-page-1#comment-5</link> <dc:creator>Raj</dc:creator> <pubDate>Wed, 01 Aug 2007 17:37:00 +0000</pubDate> <guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=16#comment-5</guid> <description>Thanks for the script, Mohanjith. Works good.&lt;br/&gt;&lt;br/&gt;One suggestion: the obtainpid did not get the pid on a RH Enterprise 5 machine for a svnserve that was not started with a pid-file option, and forcestop failed.&lt;br/&gt;&lt;br/&gt;I can investigate later why obtainpid failed, but you might want to add a check in stop and forcestop to make sure you have a valid pid before trying to kill it.&lt;br/&gt;&lt;br/&gt; -Raj</description> <content:encoded><![CDATA[<p>Thanks for the script, Mohanjith. Works good.</p><p>One suggestion: the obtainpid did not get the pid on a RH Enterprise 5 machine for a svnserve that was not started with a pid-file option, and forcestop failed.</p><p>I can investigate later why obtainpid failed, but you might want to add a check in stop and forcestop to make sure you have a valid pid before trying to kill it.</p><p> -Raj</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic (User agent is rejected)
Database Caching 5/28 queries in 0.008 seconds using memcached
Object Caching 0/0 objects using memcached
Content Delivery Network via cdn.mohanjith.net

Served from: mohanjith.net @ 2012-02-11 19:11:47 -->
