Issuing reboot in StackScript

As I change the hostname and other settings, I'd like to do a reboot at the end of my deployment StackScript so that I have a 'fresh' start when finished. Adding the reboot command on the final line seems to have triggered an endless loop, where the SS runs, reboots and due to the script not finishing, executes again, calling reboot again, etc, etc.

Any pointers? My need for restarting is tied to this document, where they basically recommend rebooting to ensure proper netwro connectivity, etc:

http://wiki.debian.org/HowTo/ChangeHost … n_specific">http://wiki.debian.org/HowTo/ChangeHostname#Application_specific

Thanks!

2 Replies

Hello. Your StackScript must exit so the parent can clean up and remove the hooks.

More info here: https://forum.linode.com/viewtopic.php?p=42936

-Chris

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct