[chef] knife ssh not keeping the process live


Chronological Thread 
  • From: Manoj Thakkar < >
  • To: " " < >
  • Subject: [chef] knife ssh not keeping the process live
  • Date: Thu, 24 Oct 2013 15:00:15 -0700

Hi All,

I have a chef recipe which does something like this

cd  tomcat/bin
./shutdown.sh
sleep 10
./startup.sh

when i run it on the node chef-client -o "recipe[tomcat]"it works fine , 

but when i call knife ssh "role[tomcat]" "chef-client -o "recipe[tomcat]"  the tomcat come up and then shutdown itself,

i thought its something to do with ssh and starting a new shell so i tried ./startup.sh &   in the recipe

but that also did not help, pls help i think i understand the issue being a new shell spawned and killed, but i dont understand why even if i put the process in background also what's the workaround for it.

Thanks
Manoj




Archive powered by MHonArc 2.6.16.

§