From lists at ruby-forum.com Wed Oct 3 07:48:04 2012 From: lists at ruby-forum.com (Dipali Barapatre) Date: Wed, 03 Oct 2012 09:48:04 +0200 Subject: [Mongrel] Mongrel restart script in .sh file is not working Message-ID: <49aae433fe2d288f8b4520c19c1b9456@ruby-forum.com> When I run script to restart mongrel written in .sh file , It is not working properly. Below are the commands written in .sh file. cd /home/apps/stage/bd/log && rm mongrel.pid -f pkill -9 mongrel_rails -u bandega cd /home/apps/stage/bd && mongrel_rails start -e production -p 4184 -d But when I manually run all above commands one by one on terminal, It is working properly and server is started properly. Is there are some problems while running script in .sh file? Thanks in advance. -- Posted via http://www.ruby-forum.com/. From john at smokinggun.com Wed Oct 3 13:52:33 2012 From: john at smokinggun.com (John Weir) Date: Wed, 3 Oct 2012 09:52:33 -0400 Subject: [Mongrel] Mongrel restart script in .sh file is not working In-Reply-To: <7CD0E3C1-5D6F-4F00-B962-127769B8225D@smokinggun.com> References: <49aae433fe2d288f8b4520c19c1b9456@ruby-forum.com> <7CD0E3C1-5D6F-4F00-B962-127769B8225D@smokinggun.com> Message-ID: <5B9F6C23-ED3A-45E4-8296-23046DF28E96@smokinggun.com> > try breaking your script down into multiple lines and not using the && operator and then add the && back in once you get the script working > it looks like there are some spots in the shell script where there should be a break, such as between the 'rm', 'pkill' and the 'cd' > > On Oct 3, 2012, at 3:48 AM, Dipali Barapatre wrote: > >> When I run script to restart mongrel written in .sh file , It is not >> working properly. >> >> Below are the commands written in .sh file. >> >> cd /home/apps/stage/bd/log && rm mongrel.pid -f pkill -9 mongrel_rails >> -u bandega cd /home/apps/stage/bd && mongrel_rails start -e production >> -p 4184 -d >> >> But when I manually run all above commands one by one on terminal, It is >> working properly and server is started properly. >> >> Is there are some problems while running script in .sh file? >> >> Thanks in advance. >> >> -- >> Posted via http://www.ruby-forum.com/. >> _______________________________________________ >> Mongrel-users mailing list >> Mongrel-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/mongrel-users >> > From john at smokinggun.com Wed Oct 3 13:51:44 2012 From: john at smokinggun.com (John Weir) Date: Wed, 3 Oct 2012 09:51:44 -0400 Subject: [Mongrel] Mongrel restart script in .sh file is not working In-Reply-To: <49aae433fe2d288f8b4520c19c1b9456@ruby-forum.com> References: <49aae433fe2d288f8b4520c19c1b9456@ruby-forum.com> Message-ID: <7CD0E3C1-5D6F-4F00-B962-127769B8225D@smokinggun.com> try breaking your script down into multiple lines and not using the && operator it looks like there are some spots in the shell script where there should be a break, such as between the 'rm', 'pkill' and the 'cd' On Oct 3, 2012, at 3:48 AM, Dipali Barapatre wrote: > When I run script to restart mongrel written in .sh file , It is not > working properly. > > Below are the commands written in .sh file. > > cd /home/apps/stage/bd/log && rm mongrel.pid -f pkill -9 mongrel_rails > -u bandega cd /home/apps/stage/bd && mongrel_rails start -e production > -p 4184 -d > > But when I manually run all above commands one by one on terminal, It is > working properly and server is started properly. > > Is there are some problems while running script in .sh file? > > Thanks in advance. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > From spurton at gmail.com Tue Oct 30 16:33:00 2012 From: spurton at gmail.com (Scott Burton) Date: Tue, 30 Oct 2012 16:33:00 +0000 (UTC) Subject: [Mongrel] Invitation to connect on LinkedIn Message-ID: <1560298671.10825906.1351614780021.JavaMail.app@ela4-app2320.prod> LinkedIn ------------ I'd like to add you to my professional network on LinkedIn. - Scott Scott Burton Software Engineer at Big Cartel Bakersfield, California Area Confirm that you know Scott Burton: https://www.linkedin.com/e/-y4ubfo-h8x8jiwf-22/isd/9334786270/MPE22CKM/?hs=false&tok=2QjGiOZEH1KRs1 -- You are receiving Invitation to Connect emails. Click to unsubscribe: http://www.linkedin.com/e/-y4ubfo-h8x8jiwf-22/uEKWyupp1v98MxleYMsAV6pLJIRszW93ls3eRqbB37/goo/mongrel-users%40rubyforge%2Eorg/20061/I3122065836_1/?hs=false&tok=0ylhLLJfz1KRs1 (c) 2012 LinkedIn Corporation. 2029 Stierlin Ct, Mountain View, CA 94043, USA. -------------- next part -------------- An HTML attachment was scrubbed... URL: