Skip to content

Instantly share code, notes, and snippets.

@kitzy
Created January 31, 2013 20:11
Show Gist options
  • Save kitzy/4685989 to your computer and use it in GitHub Desktop.
Save kitzy/4685989 to your computer and use it in GitHub Desktop.
This can be added to my jssdeploy script to accomodate for the JSS database connections dropping due to Rackspace's 120 second timeout on their Cloud Databases product.
# Modify database connection time from 300 to 100 to accommodate for Rackspace's Cloud Databases default timeout of 120 seconds
sed "s@<IdleConnectionTestPeriod>.*@<IdleConnectionTestPeriod>100</IdleConnectionTestPeriod>@" -i /var/lib/tomcat7/webapps/$instanceName/WEB-INF/xml/DataBase.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment