On Mon, Jan 21, 2013 at 4:28 PM, Andrey Brindeyev <
abrinde...@griddynamics.com> wrote:

> I need to deploy Java artifact to Tomcat and run tests.
> Due Java environment variables change I can't just put WAR file inside
> Tomcat, entire Tomcat app needs to be restarted.
>
> If I start my tests immediately after Tomcat startup then they fail due
> "Connection refused" error.
> I need to wait until Tomcat service start and initializes itself and all
> deployed artifacts. Easiest way to do that is to wait specified pattern in
> Tomcat's log file.
>

Just write and deploy the service startup wrapper script and ask puppet to
invoke that script for service start.

service { 'tomcat':
   ensure => running,
   start => custom_startup_script.
}

The custom startup script should just do the same thing as the chef script,
start the service, watch the log before exit, or timeout and fail.

Nan

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to