[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [TEKNIK] Er der en, der ved, om der findes en fil i Linux, der svarer til config.sys



On Mon, Apr 17, 2000 at 21:28:41 +0200, Kristian W. Jakobsen wrote:

> Er der en, der ved, om der findes en fil i Linux, der svarer til config.sys
> og autoexec.bat i dos?

Jo men det er ikke en fil men mange afhængig af opgave
og linux distribution (RH != SuSE != Debian !=....)

Generelt er det sådan at den første process der starter er "init"
som har processnummer 1.
Den læser /etc/inittab og den ønskede runlevel (0-6) afgør hvad der skal
ske.
Hos mig med debian er der f.eks.:
.......
# Runlevel 0 is halt.
# Runlevel 1 is single-user.
# Runlevels 2-5 are multi-user.
# Runlevel 6 is reboot.
l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6
.....


/etc/init.d/rc er så et script der starter andre scripts.

Har jeg nogle ting der skal udføres kun en gang ved boot
så er det i /etc/rc.boot/1rclocal
Er det dæmoner/processer der skal køre i baggrunden så er det andre steder
det skal gøres.


Er det shell-variable og initialiseringer så skal man se manualen
til sin shell. Ofte er det enten bash ellet tcsh der anvendes.

bash læser f.eks. /etc/profile og i brugerens katalog ofte ~/.bashrc 
og en af ~/.bash_profile eller  ~/.profile 


-- 
mvh Frank Damgaard  | http://home3.inet.tele.dk/frda/



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 21:38 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *