{"id":710,"date":"2010-07-21T11:15:31","date_gmt":"2010-07-21T10:15:32","guid":{"rendered":"http:\/\/blog.eweibel.net\/?p=710"},"modified":"2010-07-21T12:41:56","modified_gmt":"2010-07-21T11:41:56","slug":"subversion-daemon-init-script","status":"publish","type":"post","link":"https:\/\/blog.eweibel.net\/?p=710","title":{"rendered":"Subversion daemon Init script"},"content":{"rendered":"<p>Unfortunately I didn\u2019t find a simple good daemon Init script for a debian Linux server where I want to start the subversion server svnserve automatically on start-up. So after a little bit searching on the internet and adapting the found resources (<a href=\"http:\/\/linux.justinhartman.com\/Startup_Script_for_Subversion\" target=\"_blank\">here<\/a> or <a href=\"http:\/\/benrobb.com\/2007\/01\/15\/howto-start-subversion-at-boot-on-ubuntu\/\" target=\"_blank\">here<\/a>), I got my Init script svnserve under \/etc\/init.d:<\/p>\n<div style=\"padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px\" id=\"scid:f32c3428-b7e9-4f15-a8ea-c502c7ff2e88:79423176-6a17-4f67-bdf2-133afaaa59e1\" class=\"wlWriterEditableSmartContent\">\n<pre class=\"brush: bash\">#!\/bin\/sh\r\n#\r\n# start\/stop subversion daemon.\r\nEXECUTABLE=\/usr\/bin\/svnserve\r\n\r\n# Test exist:ence of the executable\r\ntest -f $EXECUTABLE || exit 0\r\n\r\n# Command line options for starting the service\r\nOPTIONS='-d -r \/var\/svn'\r\n\r\n. \/lib\/lsb\/init-functions\r\n\r\ncase $1 in\r\nstart)\r\nlog_daemon_msg \"Starting subversion daemon: $EXECUTABLE $OPTIONS\"\r\nstart-stop-daemon -vo -x $EXECUTABLE -S -- $OPTIONS\r\nlog_end_msg $?\r\n;;\r\n\r\nstop)\r\nlog_daemon_msg \"Stopping subversion daemon: $EXECUTABLE $OPTIONS\"\r\nstart-stop-daemon -K -qo -x $EXECUTABLE\r\nlog_end_msg $?\r\n;;\r\n\r\nforce-reload)\r\n$0 restart\r\n;;\r\n\r\nrestart)\r\n$0 stop\r\n$0 start\r\n;;\r\n\r\n*)\r\nlog_daemon_msg \"Usage: \/etc\/init.d\/svnserve {start|stop|restart}\"\r\nexit 1\r\n;;\r\nesac\r\n\r\nexit 0<\/pre>\n<\/div>\n<p>After you created that script (be sure that the file is executable), you have to add the script to the boot sequence:<\/p>\n<div style=\"padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px\" id=\"scid:f32c3428-b7e9-4f15-a8ea-c502c7ff2e88:9e4015de-6719-4602-a4fa-8c21801be1ae\" class=\"wlWriterEditableSmartContent\">\n<pre class=\"brush: text\">update-rc.d svnserve defaults\r\n<\/pre>\n<\/div>\n<p>If you see errors or improvements, feel free to add a comment.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unfortunately I didn\u2019t find a simple good daemon Init script for a debian Linux server where I want to start the subversion server svnserve automatically on start-up. So after a little bit searching on the internet and adapting the found resources (here or here), I got my Init script svnserve under \/etc\/init.d: #!\/bin\/sh # # start\/stop subversion daemon. EXECUTABLE=\/usr\/bin\/svnserve # Test exist:ence of the executable test -f $EXECUTABLE || exit 0 # Command line options for starting the service OPTIONS=&#8217;-d&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/blog.eweibel.net\/?p=710\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[9],"tags":[],"class_list":["post-710","post","type-post","status-publish","format-standard","hentry","category-private"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/plOV9-bs","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":982,"url":"https:\/\/blog.eweibel.net\/?p=982","url_meta":{"origin":710,"position":0},"title":"Jenkins and .Net","author":"Patrick","date":"24. Feb 2011","format":false,"excerpt":"This week I visited the first JUG\u2019s event in Bern. The topic was Jenkins (fork of Hudson). The presentation of Dr. Simon Wiest was very entertaining. He explained continuous integration and showed how easy it is to install, configure and run Jenkins. .Net integration in Jenkins Jenkins is from the\u2026","rel":"","context":"In &quot;.NET&quot;","block_context":{"text":".NET","link":"https:\/\/blog.eweibel.net\/?cat=13"},"img":{"alt_text":"butler","src":"https:\/\/i0.wp.com\/blog.eweibel.net\/wp-content\/uploads\/butler_thumb.gif?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":954,"url":"https:\/\/blog.eweibel.net\/?p=954","url_meta":{"origin":710,"position":1},"title":"Visualize changes in your repository","author":"Patrick","date":"17. Feb 2011","format":false,"excerpt":"As you perhaps know, there exists a very interesting project on Google code, with which you can visualize the activities on your repository: Gource. Getting started It supports Git, Mercurial, Bazaar and SVN. There is also a way to visualize the changes in a repository of a Microsoft Team Foundation\u2026","rel":"","context":"In &quot;New technology&quot;","block_context":{"text":"New technology","link":"https:\/\/blog.eweibel.net\/?cat=6"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1306,"url":"https:\/\/blog.eweibel.net\/?p=1306","url_meta":{"origin":710,"position":2},"title":"Build your private git infrastructure","author":"Patrick","date":"22. Apr 2014","format":false,"excerpt":"I've got for several years a virtual server to put my own projects under version control. I started with CVS, then migrated to SVN and now I'm start thinking to migrate all the old projects to git. This because I like git very much and I use it personally for\u2026","rel":"","context":"In &quot;First experiencies&quot;","block_context":{"text":"First experiencies","link":"https:\/\/blog.eweibel.net\/?cat=7"},"img":{"alt_text":"gitlogo","src":"https:\/\/i0.wp.com\/blog.eweibel.net\/wp-content\/uploads\/gitlogo.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":942,"url":"https:\/\/blog.eweibel.net\/?p=942","url_meta":{"origin":710,"position":3},"title":"Enums and inheritance in .Net","author":"Patrick","date":"9. Feb 2011","format":false,"excerpt":"In one of my current projects I had the following code (I simplified the code a bit): public string ConnectionString { get { switch(this.Importer) { case Importer.SqlServer: return \"Server=localhost;Database=Northwind\"; case Importer.SqlServerOleDb: return\"Provider=SQLOLEDB;Data Source=localhost;Initial Catalog=Northwind\"; default: throw new NotSupportedException( string.Format(\"Importer {0} is not supported yet.\", this.Importer)); } } } After running\u2026","rel":"","context":"In &quot;.NET&quot;","block_context":{"text":".NET","link":"https:\/\/blog.eweibel.net\/?cat=13"},"img":{"alt_text":"CodeCoverage","src":"https:\/\/i0.wp.com\/blog.eweibel.net\/wp-content\/uploads\/CodeCoverage_thumb.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/blog.eweibel.net\/wp-content\/uploads\/CodeCoverage_thumb.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/blog.eweibel.net\/wp-content\/uploads\/CodeCoverage_thumb.png?resize=525%2C300 1.5x"},"classes":[]},{"id":797,"url":"https:\/\/blog.eweibel.net\/?p=797","url_meta":{"origin":710,"position":4},"title":"NHibernate day in Bologna","author":"Patrick","date":"25. Oct 2010","format":false,"excerpt":"During a whole day several speakers spoke about NHibernate and related topics. This conference was in Bologna and was very well prepared and organized. You could watch the slides and the videos of the sessions here. I joined the following sessions: Keynote Simone Chiaretta opened the conference and showed during\u2026","rel":"","context":"In &quot;.NET&quot;","block_context":{"text":".NET","link":"https:\/\/blog.eweibel.net\/?cat=13"},"img":{"alt_text":"NHDay_3","src":"https:\/\/i0.wp.com\/blog.eweibel.net\/wp-content\/uploads\/NHDay_3_thumb.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":303,"url":"https:\/\/blog.eweibel.net\/?p=303","url_meta":{"origin":710,"position":5},"title":"From NUnit to MSTest","author":"Patrick","date":"30. Jun 2009","format":false,"excerpt":"Last week I migrated several projects from NUnit to MSTest. The developers use the Developer version of Microsoft Visual Studio Team System, so they have integrated unit-test support for MSTest. In this post I show you all the problems and work I had to migrate the tests from NUnit to\u2026","rel":"","context":"In &quot;.NET&quot;","block_context":{"text":".NET","link":"https:\/\/blog.eweibel.net\/?cat=13"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/blog.eweibel.net\/index.php?rest_route=\/wp\/v2\/posts\/710","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.eweibel.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.eweibel.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.eweibel.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.eweibel.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=710"}],"version-history":[{"count":2,"href":"https:\/\/blog.eweibel.net\/index.php?rest_route=\/wp\/v2\/posts\/710\/revisions"}],"predecessor-version":[{"id":712,"href":"https:\/\/blog.eweibel.net\/index.php?rest_route=\/wp\/v2\/posts\/710\/revisions\/712"}],"wp:attachment":[{"href":"https:\/\/blog.eweibel.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.eweibel.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=710"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.eweibel.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}