Results 1 to 4 of 4

Thread: /etc/rc.local does not seem to run?

  1. #1
    Join Date
    Apr 2006
    Beans
    205

    /etc/rc.local does not seem to run?

    I am running 8.04 server edition on a headless machine.

    I have set my /etc/rc.local script to include:

    Code:
    sudo -u john screen -dmS hellanzb hellanzb
    The rest of it is as it was on install, ie nothing really.

    It will run if I just run in from a command prompt, but on reboot does not seem to do anything. I have chmod 777 /etc/rc.local but still nothing.

    All I want to do is have my server running hellanzb at boot without having to login and start it.

    I have read a number of posts about this and as far as I can understand, the above should work!

  2. #2
    Join Date
    May 2008
    Location
    Cowtown
    Beans
    573
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: /etc/rc.local does not seem to run?

    If it's in rc.local (which is run with root priveledges anyway) I think the line should be
    Code:
    su - john -c screen -dmS hellanzb hellanzb

  3. #3
    Join Date
    Apr 2006
    Beans
    205

    Re: /etc/rc.local does not seem to run?

    No that did not work either.

    I thought that I needed the -u switch to change the user?

    I have also triedsaving the contents of my 'rc.local' as 'myscript' into
    /etc/init.d/ , chmod 755 it and then running:

    Code:
    update-rc.d myscript defaults
    but that did not work either.

  4. #4
    Join Date
    May 2008
    Location
    Cowtown
    Beans
    573
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: /etc/rc.local does not seem to run?

    For BSD but should apply here too
    http://groups.google.com/group/lucky...b6a2a0b2e7f764

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •