Find the answer to your Linux question:
Page 2 of 4 FirstFirst 1 2 3 4 LastLast
Results 11 to 20 of 38
i cant believe it happened, but i always check the simple stuff first. If you are booting into X (which i would imagine) ls /etc/rc5.d/ | grep local make sure ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Linux User
    Join Date
    Jul 2002
    Location
    Daytona Beach, FL
    Posts
    487

    i cant believe it happened, but i always check the simple stuff first. If you are booting into X (which i would imagine)

    ls /etc/rc5.d/ | grep local

    make sure it returns

    S99local

    if it doesnt then do

    chkconfig local on
    majorwoo

    Quiet brain, or I\'ll stab you with a Q-tip.

  2. #12
    Just Joined!
    Join Date
    Aug 2002
    Posts
    26
    it returns s99local, wtf am i doing wrong here. is there anything i need to put before the command to run the app???? i mean this is exactly what i have and should work.

    {#blah blah blah

    touch /var/lock/subsys/local

    /usr/local/bin/cpudocker}

  3. #13
    Linux User
    Join Date
    Jul 2002
    Location
    Daytona Beach, FL
    Posts
    487
    try adding a

    #/bin/sh

    line to the top of your S99local script - it should be there by default

    (also is there a possibility that the program IS running on startup, but is doign something funny?) remember that S99local is executed before you login into X, so if this is some kind of X app maybe it isn't running the way you want it too...

    try adding somethign like

    touch /tmp/s99local_script_ran

    and after you restart check if the file exists

    ls -l /tmp/s99local_script_ran

    if you add this the touch line after your cpudocker call and the file shows up in /tmp then the cpudocker program WAS called, it is just not acting the way you want it to.
    majorwoo

    Quiet brain, or I\'ll stab you with a Q-tip.

  4. #14
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Try modifying the line in rc.local to this:
    Code:
    /bin/sh -c "cpudocker" >/tmp/cpudocker 2>&1
    Then see if /tmp/cpudocker contains anything useful.

  5. #15
    Just Joined!
    Join Date
    Aug 2002
    Posts
    26
    ok majorwoo, it did in fact make that file, im using Xwindows if that make a difference in what i am doing. i just want the app to load when i log into the box, cant believe this is such a pain. will the app pop up if i log in as root or does it have to be a different user???

    Dolda2000, says command not found in that file, do i need to substitute the bin/sh for where my program is loaded??

    thx

  6. #16
    Linux User
    Join Date
    Jul 2002
    Location
    Daytona Beach, FL
    Posts
    487
    no, do this

    /bin/sh -c "/path_to_program/cpudocker" >/tmp/cpudocker 2>&1

    dolda assumed cpudocker was in your PATH so if your cpudocker program is in /usr/local/ do

    /bin/sh -c "/usr/local/cpudocker" >/tmp/cpudocker 2>&1
    majorwoo

    Quiet brain, or I\'ll stab you with a Q-tip.

  7. #17
    Just Joined!
    Join Date
    Aug 2002
    Posts
    26
    all it says is {cpudocker: cant open display. Sorry......}

    what the hell does that mean.....maybe it is trying to start the app when x login boots and not actually when i get logged in....any way to circumvent that....??

    thanx again for all your help

  8. #18
    Linux Engineer
    Join Date
    Jan 2003
    Location
    Lebanon, pa
    Posts
    994
    It needs an x server running appearently so rc.local won't work in this case. Not sure where you can put the command to execute after you log into x.

  9. #19
    Just Joined!
    Join Date
    Aug 2002
    Posts
    26
    ok thanx all and if anyone knows a way to do it, let me know.

  10. #20
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    If you use GNOME, find Session Preferences in the control panel and add it to the startup list.

Page 2 of 4 FirstFirst 1 2 3 4 LastLast

Posting Permissions

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