I wrote a little script for upstart and included a log function in the executable file, but there is no log output. When starting the program manually, it works fine.
Here is the .conf file located in /etc/init/:

description "upstart file for the program"

start on startup
stop on shutdown


exec /usr/local/bin/program

I am using Ubuntu 14.04 LTS with upstart 1.12.1.


Perhaps you should follow the Ubuntu upstart howto

A couple of points that may be of interest to you:

  • the scripts are located in /etc/init.d
  • they need a symbolic link to them in a /etc/rcN.d folder - N = runlevel
  • 1
    My script is actually a upstart job, which should be in /etc/init according to the link and the Upstart cookbook. – Python Schlange Dec 26 '20 at 10:45
  • In that case: "start on startup" - has /usr already been mounted? Where is the log located? – Gerard H. Pille Dec 26 '20 at 12:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.