Skip to content

Instantly share code, notes, and snippets.

@andreacfm
Created September 30, 2010 19:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreacfm/605191 to your computer and use it in GitHub Desktop.
Save andreacfm/605191 to your computer and use it in GitHub Desktop.
Ant target to restart a railo server
<target name="restartRailo" description="Restarts the Railo server.">
<get
src="http://${server.name}:${server.port}/server/railo_restart.cfm?admin_password=${admin.password}"
dest="${www}/server/temp/restart_output.txt"/>
<loadfile property="restart.status" srcFile="${www}/server/temp/restart_output.txt"/>
<echo message="Restart status: ${restart.status}"/>
<delete file="${www}/server/temp/restart_output.txt"/>
</target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment