Find the answer to your Linux question:
Results 1 to 4 of 4
i have two programs installed that i would like to be able to start at bootup i can run the programs in terminal fine. i read somewhere to edit /etc/rc.local ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2004
    Location
    Auckland, New Zealand
    Posts
    61

    starting programs like a service at startup


    i have two programs installed that i would like to be able to start at bootup
    i can run the programs in terminal fine.

    i read somewhere to edit /etc/rc.local
    and add the path to the programs

    but they dont start on bootup i can start them by executing rc.local after bootup.

    The two programs are located in
    /usr/local/bin

    my rc.local looks like this

    #!/bin/sh
    #
    #This script will be executed after all other init scripts.
    #You can put your own initialization stuff in here if you don't
    #want to do the full Sys V style init stuff.

    touch /var/lock/subsys/local
    /usr/local/bin/noip2
    /user/local/bin/opendchub

    can anyone help please.!
    i have been looking everywhere for help before i have posted this question.

  2. #2
    Linux Newbie
    Join Date
    Apr 2004
    Posts
    158
    Hi,

    Maybe it's just a typo but you have "user" in stead of usr in one of the paths...

    If that doesn't work, what does the boot.log say? (or messages)

    Regards

    Jonas
    --
    in Linux Computing we Trust

  3. #3
    Just Joined!
    Join Date
    Oct 2004
    Location
    Auckland, New Zealand
    Posts
    61
    sorry was just a typo user.
    so you think that the rc.local should be running the programs

    im a noobie as ,, im not sure where or how to find the log file / files?
    any help would be grate

  4. #4
    Linux Newbie
    Join Date
    Apr 2004
    Posts
    158
    Hi again,

    No need to be sorry for beeing a newbe, we all need to crawl before we can walk!!!

    log files are in /var/log

    to look at the logs do one of the following;

    tail <logfile> - will show the last 10 entries of that file
    tail -100 <file> - will show the last 100 lines...

    more <file> - will show the whole file one screenshot at a time and let you deside when to move on...

    less <file> - less is more! less is an improved more program, you can scroll backwords and forwards and also do pattern searching.
    In order to search in a less session just type "/" and your search string.

    //jonas
    --
    in Linux Computing we Trust

Posting Permissions

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