Thank you for visiting the Rackspace Community
The The Community is live! Post new content or topics so our teams can assist.

Please contact your support team if you have a question or need assistance for any Rackspace products, services, or articles.

Shutting down a server properly

This question is not answered.

I am using  

https://developer.rackspace.com/docs/cloud-servers/v2/api-reference/svr-basic-operations/#stop-specified-server

To stop a server. On the server I have some scripts that run on shutdown signal. The scripts will not run when issuing the os_stop in the above call. The scripts will run if I do a shutdown -h now from the server. 

I  did read this comment https://community.rackspace.com/developers/f/7/p/7714/13630.aspx#13630 where he states that "OpenStack instances don't really stop or start - they are deleted or created". Am I out of luck?

All Replies
  • looks like i can do this instead of sending null.

    The following API methods will be extended to accept an optional shutdown_type parameter:

    Stop POST servers/{server_id}/action

    {"os-stop": {"shutdown_type": "HARD|SOFT"}}