Announcement

Collapse
No announcement yet.

Upstart problem <solved>

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Upstart problem <solved>

    Can someone lead me to a good upstart how to?
    I want to run a script at boot. I've tried the old update-rc.d & setting up cron @reboot, but nothing works! After googling around; I realise now upstart is the way to go.
    How do I get upstart to run a script at startup? It seems I place the script in /etc/init/?
    BTW. I'm using ubuntu-server 9.10
    Thanks in advance!

    #2
    Re: Upstart problem

    Originally posted by Teunis
    K-menu/system settings/advanced/autostart
    I just modified my post as you posted Teunis! Using Ubuntu-server 9.10.

    Update: I tried (in detail) to use rc-update.d again. No errors! But still not working! Is there an expert here with knowledge of this? I've searched throughout the net without finding much detail about 'upstart'. It seems to have been slowly integrated into Ubuntu base from around 2006 so I would have thought there was more documentation.

    Comment


      #3
      Re: Upstart problem

      Well, Here's what I've pieced together;

      Upstart jobs are placed in the /etc/init/ directory.
      They are plain txt and not executable.
      They are run based on event listed in the opening header in the file. i.e. start on runlevel 2.

      To test the the file;
      initctl emit <filename>

      Tried all that and no output!
      Tried a 'test' file which just - echo "upstart check" > /tmp/upstart.txt

      Any ideas?

      Comment


        #4
        Re: Upstart problem &lt;solved&gt;

        Well fixed by editing /etc/network/interfaces and adding eth1 etc. NAS failed then to boot, Removing the above, NAS started normally WITH mediatomb -

        Comment

        Working...
        X