Where does StackScript log to?

I just deployed a linode via a StackScript and I can't find the logs anywhere. I saw another post here saying it should be at /root/stackscript.log but I couldn't locate that log anywhere on my linode with find / -name stackscript.log

1 Reply

So apparently StackScripts do not automatically log output anywhere.

I added exec >/root/stackscript.log 2>&1 to the top of my script and it seems to work nicely. Might be nice to add that int he docs somewhere.

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