View previous topic :: View next topic |
Author |
Message |
rasat n00b
Joined: 30 May 2002 Posts: 74
|
Posted: Tue Jun 11, 2002 5:25 am Post subject: How to modify runscript? |
|
|
Hi,
To get automatically some applications to run when booting, I learned how to add the command line in to etc/conf.d/local.start. But if you do a mistake, it seems it's not enough only to remove the line from local.start. When booting the /sbin/runcript.sh is still looking for the command.
Example, I did a mistake by adding the command kdm into local.start (I already got the answer from this forum how to do it) but when booting I get the following error:
/sbin/runscript.sh: kdm: command not found
How to remove the kdm command from runscript?
Markku |
|
Back to top |
|
|
lx Veteran
Joined: 28 May 2002 Posts: 1012 Location: Netherlands
|
Posted: Tue Jun 11, 2002 10:45 am Post subject: |
|
|
Well the /etc/init.d/local script just uses local.start and local.stop files to start and stop files. If you remove it from both scripts it will not be started. Just tested it, so I think the error lies somewhere else. You can test it yourself by using /etc/init.d/local start or stop, if this generates the error than your looking in the right place.
Btw. What are the lines surrounding the error? so we can see the location / deduce what script is causing it.
Btw. Just to make sure, does kdm work? You want to start kdm, and it states it can't find kdm, do you kdm installed? Well gdm (which I use is in /usr/bin/gdm) please do 'which kdm', to check if its installed.
cya lX. _________________ "Remember there's a big difference between kneeling down and bending over.", Frank Zappa |
|
Back to top |
|
|
rasat n00b
Joined: 30 May 2002 Posts: 74
|
Posted: Tue Jun 11, 2002 12:38 pm Post subject: |
|
|
Thanks for the reply.
I found the problem. It was caused by myself by adding the line kdm in /etc/runlevels/default/local in my earlier effort to get kdm to work.
Markku |
|
Back to top |
|
|
james n00b
Joined: 24 Apr 2002 Posts: 56 Location: Middle Smithfield, PA
|
Posted: Tue Jun 11, 2002 11:27 pm Post subject: |
|
|
Hummmm. _________________ 17 Opps It's 19 now Gentoo's and counting |
|
Back to top |
|
|
mksoft l33t
Joined: 28 May 2002 Posts: 844
|
Posted: Tue Jun 11, 2002 11:59 pm Post subject: |
|
|
rasat wrote: | Thanks for the reply.
I found the problem. It was caused by myself by adding the line kdm in /etc/runlevels/default/local in my earlier effort to get kdm to work.
Markku |
Why not use xdm script to start kdm ? in /etc/rc.conf set:
and run:
Code: | rc-update add xdm default |
_________________ There's someone in my head but it's not me - Pink Floyd |
|
Back to top |
|
|
|