tag:blogger.com,1999:blog-11593374.post7987969225860142110..comments2024-01-08T08:41:26.797+00:00Comments on Andrew Beacock's Blog: A Capistrano recipe for restarting Apache 2 (on Linux)Andrew Beacockhttp://www.blogger.com/profile/01039992884679308726noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-11593374.post-78363433015095482302011-02-19T01:13:44.532+00:002011-02-19T01:13:44.532+00:00Thanks, have been looking for this!Thanks, have been looking for this!Greg Winnhttp://winn.wsnoreply@blogger.comtag:blogger.com,1999:blog-11593374.post-9733559785773579442010-11-30T21:41:52.836+00:002010-11-30T21:41:52.836+00:00I am having the hardest time with using Ubuntu ser...I am having the hardest time with using Ubuntu server. My friend who recommended it to me has no problems at all, but I can't get full functionality, and when we both try to do some trouble-shooting, nothing ever comes of it. It is so frustrating! <br /><br />But back to the topic, the Capistrano recipe looks like it's worth trying out.<br />THanks,<br />AngelaLethbridge SEOhttp://lethbridgeseo.wordpress.com/2010/11/21/lethbridge-seo-for-your-business/noreply@blogger.comtag:blogger.com,1999:blog-11593374.post-32731538731135987232010-11-26T06:58:47.553+00:002010-11-26T06:58:47.553+00:00This is really great!!
Very helpful indeed!! espec...This is really great!!<br />Very helpful indeed!! especially for those who encounter difficulty with regard to the services they offer.Lose Fat Stomachhttp://www.marimethod.com/aboutnoreply@blogger.comtag:blogger.com,1999:blog-11593374.post-20006916967082263012010-03-12T04:13:10.571+00:002010-03-12T04:13:10.571+00:00very nice, thanksvery nice, thanksfeby artandihttps://www.blogger.com/profile/08925650279386123248noreply@blogger.comtag:blogger.com,1999:blog-11593374.post-74723114681187790402008-02-10T20:02:00.000+00:002008-02-10T20:02:00.000+00:00ngryman,So what you are saying is if we have a con...ngryman,<BR/><BR/>So what you are saying is if we have a control script that lives within /etc/init.d (and therefore obeys the rules of stop/start/(restart?)) then we can simply list them at the top and get the rest of the rake task to auto-generate the tasks.<BR/><BR/>I like your thinking!Andrew Beacockhttps://www.blogger.com/profile/01039992884679308726noreply@blogger.comtag:blogger.com,1999:blog-11593374.post-59968919145664498722008-02-10T19:57:00.000+00:002008-02-10T19:57:00.000+00:00More generally, we could use this for a set of sev...More generally, we could use this for a set of several services that we want to control remotly.<BR/>For example with apache and mysql:<BR/><BR/># For each service...<BR/> {:apache => 'apache2', :mysql => 'mysql'}.each do |name, script|<BR/> namespace name do <BR/> # For each action...<BR/> [:stop, :start, :restart, :reload].each do |action|<BR/> desc "#{action.to_s.capitalize} #{name.to_s.capitalize}"<BR/> task action, :roles => :web do<BR/> run "/etc/init.d/#{script} #{action.to_s}"<BR/> end<BR/> end<BR/> end<BR/> endAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-11593374.post-80056935392846374222008-02-10T19:39:00.000+00:002008-02-10T19:39:00.000+00:00Thanks!Very elegant way to do :)Thanks!<BR/>Very elegant way to do :)Anonymousnoreply@blogger.com