简体   繁体   中英

How to shutdown server using Grails

Is it possible to shutdown the server from a WAR-deployed Grails application?

Use case: I'm using an application to perform some processing. When it's done, I want the computer to shutdown (it's running on AWS and I don't want to have it run for longer than needed).

(If there isn't, I'll just set a CPU usage threshold on the AWS monitor and close it down when it drops below a given threshold using AWS's tools, but I'd like a less hacky way of doing it please).

您可能会对此感到有些棘手-使用AWS开发工具包终止正在运行的实例。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM