Click to See Complete Forum and Search --> : This should be it.


CP
06-26-2001, 02:23 AM
Fixed everything but this.
Finally, is it possible to add icons to the desktop in XDM, and how do I set the default WM.
THANX
CP

[ 28 June 2001: Message edited by: CP ]

Xsecrets
06-26-2001, 04:26 AM
In debian you write your script and put it in /etc/init.d/ then create a simlink to it in /etc/rc2.d/

example script /etc/init.d/firewall
link /etc/rc2.d/S99firewall

the S tells debian to run that script the 99 tells it when to run it 99 is at the end of the boot process which should work fine for a firewall script. the rcx.d x=runlevel default in debian is 2 unless you changed it.

miker
06-26-2001, 05:54 AM
i'm new to this boot-up script stuff too, but doesn't the runlevel determine when it is run? or is that only relevant when *switching* runlevels after boot?

i also see in my SuSE distro, as well as 'S' prefix scripts I also have 'K' - presumably for kill at that runlevel

i've yet to encounter a satisfactory explanation/nhf/howto of what goes on - i can write a script and use insserv to insert it as a boot service, but i don't actually know what it's done!

then there's the fact that suse reputedly does things differently to the other distros with regard to init and rc stuff.....

anyone got any pointers? i would really like to *understand* what goes on

Xsecrets
06-26-2001, 09:25 PM
the rcx.d dir the x is the runlevel if your inittab has runlevel 2 in it it will use rc2.d dir. I don't know exactly what the S and K stand for but I know if you have a S it runs that script but if you have a K it does not.

runlevel has nothing to do with when something runs. eplination of runlevel goes like this

1 = single
2-5 = multiuser (on most redhat based distros 3=cli 5=gui this is not the case with debian)
6 = reboot (this is basically what it does when you issue the shutdown command it switches to runlevel 6)

snowgod
06-27-2001, 05:01 PM
After a bunch of us all had this problem in about 2 days time, Craig McPherson (sp?) was getting frustrated and made a great NHF for us at start up commands in debian (http://www.linuxnewbie.org/nhf/intel/distros/deb/deb_startupcommands.html)

DMR
06-27-2001, 08:58 PM
Yes,
S = Start the script/process/command
K= Kill the script/process/command