Results 1 to 4 of 4

Thread: Running executable using rc.local: does not run on boot up

  1. #1
    Join Date
    Apr 2015
    Beans
    15

    Running executable using rc.local: does not run on boot up

    Hi,

    I am trying to run an executable that starts on boot up. I have modified the /etc/rc.local file to run the executable located in the /usr/local/bin. I tested the rc.local script with the command: sudo /etc/init.d/rc.local start, and the executable ran fine. However, when I restart my system, the application does not run. I am not sure of the source of the problem because there are no errors or feedback. Any suggestions would be appreciated.

    Thanks,
    Carr

  2. #2
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    5,169
    Distro
    Kubuntu

    Re: Running executable using rc.local: does not run on boot up

    use the full path to the executable file in rc.local
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
    Putting your Networked Printer's scanner software to shame PHP Scanner Server
    I frequently edit my post when I have the last post

  3. #3
    Join Date
    May 2010
    Location
    uk
    Beans
    9,249
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Running executable using rc.local: does not run on boot up

    Hi

    Quote Originally Posted by carr3 View Post
    Hi,

    I am trying to run an executable that starts on boot up. I have modified the /etc/rc.local file to run the executable located in the /usr/local/bin. I tested the rc.local script with the command: sudo /etc/init.d/rc.local start, and the executable ran fine. However, when I restart my system, the application does not run. I am not sure of the source of the problem because there are no errors or feedback. Any suggestions would be appreciated.

    Thanks,
    Carr
    Depending on the executable, rc.local may not be the best place to put it.

    What is the executable and what does it do ?

    Kind regards
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  4. #4
    Join Date
    Apr 2015
    Beans
    15

    Re: Running executable using rc.local: does not run on boot up

    Solved the problem. Had to use explicit path. Thanks for your suggestion though!

Tags for this Thread

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
  •