StackScript : no output
I'm trying to implement my own StackScript.
I have tried with the linode deploy tool but it seems there is something wrong because some stuff is not well set up, after build.
The problem is I can't see what's happen during I launch it. As mentioned in this post:
I logged myself on the console through the lish connection to see what's going on the console. But nothing appears on it except :
Job XXXXXX - System Shutdown completed.
Job XXXXXX - Disk Delete - [866160] completed.
Job XXXXXX - Disk Create From StackScript completed.
Job XXXXXX - Create Filesystem - 256MB Swap Image completed.
Even if I have in my StackScript this piece of code :
echo 'Create RVM group'
At the beginning of my script, I put set -e as mentioned in this thread:
Is there a way to see what really happen during this execution
Thank you for your time !
2 Replies
Maybe, during my previous tries, I was not well connected.
My bad, sorry.
I just ran into this and have a fix that works for me and might help others.
#!/bin/bash -e
exec > >(tee -i /var/log/stackscript.log)
Top of StackScript with output logging
- Create instance with the StackScript changes above.
- Once the console shows "Running"
- Launch Console
- Glish
- Login as root
tail -f /var/log/stackscript.log