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 ...
- 01-18-2003 #11Linux 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 onmajorwoo
Quiet brain, or I\'ll stab you with a Q-tip.
- 01-18-2003 #12Just 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}
- 01-18-2003 #13Linux 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.
- 01-18-2003 #14Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Try modifying the line in rc.local to this:
Then see if /tmp/cpudocker contains anything useful.Code:/bin/sh -c "cpudocker" >/tmp/cpudocker 2>&1
- 01-19-2003 #15Just 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
- 01-19-2003 #16Linux 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>&1majorwoo
Quiet brain, or I\'ll stab you with a Q-tip.
- 01-19-2003 #17Just 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
- 01-19-2003 #18Linux 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.
- 01-19-2003 #19Just Joined!
- Join Date
- Aug 2002
- Posts
- 26
ok thanx all and if anyone knows a way to do it, let me know.
- 01-19-2003 #20Linux 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.


Reply With Quote
