Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Startup script logs location

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?

like image 337
Christian Daguerre Avatar asked Mar 14 '17 12:03

Christian Daguerre


People also ask

Where we can find the startup scripts?

The path is Computer Configuration\Windows Settings\Scripts (Startup/Shutdown).

Where are startup scripts in Linux?

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.

What is startup script?

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.


1 Answers

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

  • Ubuntu 14.04, 16.04, and 16.10: /var/log/syslog
  • SLES 11 and 12: /var/log/messages
like image 129
GalloCedrone Avatar answered Sep 22 '22 06:09

GalloCedrone