In Google Cloud Platform's Ubuntu 16.04.1 instance, the output of my startup script was written to /var/log/startupscript.log
.
Since they upgraded to 16.04.02
I can't find the logs anymore.
Any idea?
The path is Computer Configuration\Windows Settings\Scripts (Startup/Shutdown).
All scripts are located in /etc/init. d. Scripts for changing the runlevel are also found there, but are called through symbolic links from one of the subdirectories (/etc/init.
A startup script is a file that contains commands that run when a virtual machine (VM) instance boots. Compute Engine provides support for running startup scripts on Linux VMs and Windows VMs. The following table contains links to documentation that describes how to use startup scripts. Startup script task.
UPDATE from the official documentation:
Startup script output is written to the following log files:
CentOS and RHEL: /var/log/messages
Debian: /var/log/daemon.log
/var/log/syslog
/var/log/messages
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With