Linux

OoPee

Nuori ikäisekseen
Liittynyt
2.6.1999
Viestit
81527
Sijainti
Far enough
/sbin/init.d.README sisältää piiiiiitkän sepustuksen Susen boottauksesta:

Mulle vaan ei noi run levelit sanoo just mitään, mutta ehkä sulle tai jollekulle mulle, joka noista jotain ymmärtää? Mutta siis olisko toi run level 5 sitten oikee? ...tosin edellenkään en tiedä mikä tiedosto.

Koodi:
NAME
       INIT.D - The SuSE boot concept

SYNOPSIS
       /etc/init.d/*

       /etc/sysconfig

DESCRIPTION
       The  scripts  for  controlling  the  system  are placed in
       /etc/init.d/ (they have  been  moved  accordingly  to  the
       Linux  Standard  Base (LSB) specification).  These scripts
       are executed directly or  indirectly  by  /sbin/init,  the
       father  of  all processes. The configuration of /sbin/init
       is given by the file /etc/inittab (see inittab(5)).

       At   boot   time,   the   boot   level    master    script
       /etc/init.d/boot  is called to initialise the system (e.g.
       file system check, ...).  It also executes  some  hardware
       init  scripts  linked  into  /etc/init.d/boot.d/.  Then it
       calls /etc/init.d/boot.local,  which  executes  the  local
       commands.

       After  system  startup, /sbin/init will normally switch on
       the default run level given in /etc/inittab.  It calls the
       run  level  master  script /etc/init.d/rc to start or stop
       services provided by the other scripts under /etc/init.d/.

       To  control the services of a run level, the corresponding
       scripts   are   linked   into   run   level    directories
       /etc/init.d/rc<X>.d/, where <X>=0,1,2,3,4,5,6,S is the run
       level number.

       There are two kinds of symbolic link: start  links,  which
       are  called  when  entering  a  run level, and stop links,
       which are called when leaving a run level.  Note that each
       service  in  the  run  levels 2, 3, 4, and 5 consists of a
       start and a stop link.  Within SuSE boot concept a differ
       ential link scheme is used to be able to change a runlevel
       in comparision with the former level.

       To avoid redundant starts when changing  run  levels  only
       those  services  are  started, which have no start link in
       the previous run level.  And to avoid redundant stops when
       changing run levels, only those services are stopped which
       have no start link in the current level. To  control  this
       behaviour, the names of the scripts are added on the names
       of the start and stop links.

       To control the order of  service  starts  and  stops,  the
       start  and stop links include a number in their link name.

       The system configuration files in  /etc/sysconfig  contain
       most of the variables used to configure the installed ser
       vices.  These variables can easily be changed by  YaST  or
       by  using  an  editor.  After  using an editor, the script
       /sbin/SuSEconfig must be called to distribute the settings
       into the system.

   Some details
       The  script  /etc/init.d/lpd  starts  or  stops  the  line
       printer daemon for the printing service, according to  the
       flag used:

              /etc/init.d/lpd start
       and

              /etc/init.d/lpd stop

       To  do  this  automatically in run level 3, this script is
       linked into /etc/init.d/rc3.d/  with  these  two  symbolic
       links

              /etc/init.d/rc3.d/S20lpd -> ../lpd
       and

              /etc/init.d/rc3.d/K20lpd -> ../lpd

       The  corresponding link with the letter S is used to start
       a service. For the printing service the number between the
       letter S and the name should be greater than the number of
       the start link of the network service.  The  corresponding
       link with the letter K is used to stop a service. The num
       ber of the stop link for the printing  service  should  be
       less than that of the stop link for the network service so
       that the printer daemon is stopped  before  shutting  down
       the network service.

   Run levels and their services
       0      This level is used for halting the system. The only
              valid service for this level is  the  script  halt,
              which   is  linked  into  /etc/init.d/rc0.d/.   The
              script halt executes /etc/init.d/halt.local.   Spe
              cials  system  issues  for halt or reboot should be
              added there.

       6      This level is used for rebooting  the  system.  The
              only  valid  service  for  this level is the script
              reboot, which is  linked  into  /etc/init.d/rc6.d/.
              The  script reboot executes /etc/init.d/halt.local.
              Specials system issues for halt or reboot should be
              added there.

       S      This  mode  is  used to switch from boot phase into
              single user mode.  The last valid service for  this
              mode  is  the  script  single, which is linked into
              /etc/init.d/rcS.d/.  In this mode you have only one
              console.

       1      Accordingly to the Linux Standard Base (LSB) speci
              fication this runlevel is used to switch from  nor
              mal  runlevel  into single user mode.  This is dif
              ferent from former SuSE Linux versions!

       2      The run level 2 is without remote networking.  Note
              that  on  some other systems this is identical with
              the single user mode.  This run level can have more
              than one virtual console.

       3      The  run level 3 is with network. This run level is
              for server stations not automatically running X.

       5      The level 5 is with network and xdm(1).  You should
              have  a  configured  and perfectly running X Window
              System for this work station run level.

       4      The run level 4 is not (yet) used.

       /etc/init.d/skeleton
              This script is a model for writing your  own.   You
              can  use insserv(8) to include your own script into
              a run level.


FILES
       /etc/init.d/*
       /etc/init.d/boot
       /etc/init.d/boot.local
       /etc/init.d/halt
       /etc/init.d/halt.local
       /etc/init.d/rc
       /etc/init.d/reboot
       /etc/init.d/skeleton
       /etc/init.d/single
       /etc/init.d/boot.d/S[0-9][0-9]*
       /etc/init.d/rc0.d/{K,S}[0-9][0-9]*
       /etc/init.d/rc1.d/{K,S}[0-9][0-9]*
       /etc/init.d/rc2.d/{K,S}[0-9][0-9]*
       /etc/init.d/rc3.d/{K,S}[0-9][0-9]*
       /etc/init.d/rc4.d/{K,S}[0-9][0-9]*
       /etc/init.d/rc5.d/{K,S}[0-9][0-9]*
       /etc/init.d/rc6.d/{K,S}[0-9][0-9]*
       /etc/init.d/rcS.d/{K,S}[0-9][0-9]*
       /etc/inittab
       /etc/sysconfig

SEE ALSO
       insserv(8), init(8), inittab(5), and the SuSE Linux  hand
       book, chapter The SuSE boot concept.

COPYRIGHT
       1996-2002 SuSE Linux AG, Nuernberg, Germany.

AUTHORS
       Florian  La  Roche  <[url]http://www.suse.de/feedback[/url]>,  Werner
       Fink      <werner@suse.de>,       Burchard       Steinbild
       <[url]http://www.suse.de/feedback[/url]>.



Version 0.4                Nov 15, 2000                 INIT.D(7)
 
Viimeksi muokattu:

markoj

Custom User
Liittynyt
28.12.1998
Viestit
38925
Toi skeleton vaikuttas tohon hommaan sopivalta, mutta mä en nyt ehdi sitä katteleen tarkemmin. En oo varma ajetaanko se suorilla käynnistyksessä, vai pitääkö se erikseen laittaa. Noista ajotasoista (runlevel) sulla on käytössä melkoisella varmuudella 5. Tossa onkin selitetty mitä muut on. 1 on periaatteessa vähä sama ku windowsissa vikasietotila ja 3 muuten sama ku 5, mutta siinä on tekstilogin eikä graafinen kirjautuminen.
 

markoj

Custom User
Liittynyt
28.12.1998
Viestit
38925
Jaajaa, nyt kun lukee virkkeen loppuun, niin toihan toki vain malli omien jutskien tekoon. Aika erikoista ku Susessa ei oo tommosta rc.local:n vastinetta. Tehdäänpä nyt et sillee!!!!1:

tee tekstitiedosto:
/etc/init.d/rc.local

ja siihen seuraavaa sisälle:
#!/bin/bash
/etc/init.d/network restart


Sitten suoritat komennot:

chmod 755 /etc/init.d/rc.local
ln -s /etc/init.d/rc.local /etc/init.d/rc5.d/S99rc.local
ln -s /etc/init.d/rc.local /etc/init.d/rc3.d/S99rc.local

Nyt sulla pitäs olla toi /etc/init.d/rc.local -tiedosto joka ajetaan varsin lopussa boot-prosessia. Tonne voi laitella kaikkia mahtiskriptejä muitaki toki.

Edit: tarkista vielä onko mulla tossa noi rc5.d -polut oikeat kun en niitä voi Susettomana tarkistaa.
 

Asko S.

Tonttu
Liittynyt
1.3.2002
Viestit
4146
Sijainti
Tampere
Välikommenttina vois mainita, että koitin asentaa tuon Ubuntun koneelle eilen. Ensivaikutelmat olivat todella hyvät. Fontit, äänet ja näytön asetukset oli heti silleen kunnossa, ettei tarttenu ku resulaation valita. Pitääpä vielä koittaa ykköskoneelle asentaa. Sit jos siinäkin toimii noin mainiosti ni tuun takas kehumaan. ;) Ohjelmia siitä puuttuu vielä, pitänee ainakin joku MP3-soitin ja Opera asentaa, ja ehkä joku toinen terminaali.

http://www.ubuntulinux.org/

Edit: Kerrotaan ny vielä sen verran, että Debianin päälle toi on koottu, kerneli on jotain 2.6.x, Gnome. Sit yks outo ominaisuus oli se, että roottia ei ole vakiona lainkaan... Mut sen lisääminen onnistuu helposti yhdellä komennolla, mutta eipä se pakollista ole, ellei sitä halua...
 
Viimeksi muokattu:

OoPee

Nuori ikäisekseen
Liittynyt
2.6.1999
Viestit
81527
Sijainti
Far enough
markoj sanoi:
Jaajaa, nyt kun lukee virkkeen loppuun, niin toihan toki vain malli omien jutskien tekoon. Aika erikoista ku Susessa ei oo tommosta rc.local:n vastinetta. Tehdäänpä nyt et sillee!!!!1:

tee tekstitiedosto:
/etc/init.d/rc.local

ja siihen seuraavaa sisälle:
#!/bin/bash
/etc/init.d/network restart


Sitten suoritat komennot:

chmod 755 /etc/init.d/rc.local
ln -s /etc/init.d/rc.local /etc/init.d/rc5.d/S99rc.local
ln -s /etc/init.d/rc.local /etc/init.d/rc3.d/S99rc.local

Nyt sulla pitäs olla toi /etc/init.d/rc.local -tiedosto joka ajetaan varsin lopussa boot-prosessia. Tonne voi laitella kaikkia mahtiskriptejä muitaki toki.

Edit: tarkista vielä onko mulla tossa noi rc5.d -polut oikeat kun en niitä voi Susettomana tarkistaa.
Toimii :eek!: :eek!: :eek!:

Kiitos :)
 

OoPee

Nuori ikäisekseen
Liittynyt
2.6.1999
Viestit
81527
Sijainti
Far enough
Itteasiassa kun noi ohjeet luki nyt jälkeenpäin sun ratkaisun nähtyäni, niin aika selkeestihän tuo tuolla kerrotaan. Mutta aika vekkulisti kyllä toteutettu tuo SuSessa vai onko toi symboolistin linkkien käyttö käynnistämään ja stoppaamaan haluttuja palveluita ihan standardia Linuxissa?
 

Miguel

beagle
Liittynyt
20.2.2003
Viestit
21803
Sijainti
West highland
OoPee sanoi:
Itteasiassa kun noi ohjeet luki nyt jälkeenpäin sun ratkaisun nähtyäni, niin aika selkeestihän tuo tuolla kerrotaan. Mutta aika vekkulisti kyllä toteutettu tuo SuSessa vai onko toi symboolistin linkkien käyttö käynnistämään ja stoppaamaan haluttuja palveluita ihan standardia Linuxissa?
Soon standardi. Jos kelaat viestejä taaksepäin vonkin verran, niin yritin kuvata sulle noita käynnistyviä palveluja aikasemmin. :thumbup:
 

Miguel

beagle
Liittynyt
20.2.2003
Viestit
21803
Sijainti
West highland
Moon tehny nimipalvelun starttaamista varten rootin kansioon skriptin, joka käynnistää palvelun uudelleen konfaamisen jälkeen.

Moon melkein guru. :D

aliaksilla saa tehtyä kaikkea kivaa, vaikkapa q=exit tai logout, c=clear, e=emacs jne.

Kyllä on tehoa komennoilla. :rolleyes:
 

Wilpuri

Senile Member
Liittynyt
28.6.1999
Viestit
9041
Sijainti
hki
Tuli törsättyä tuossa hiljattain. Kohteena PDA-tyyppinen laite, Sharpin Zaurus sl-c860. Käyttiksenä linux. 3,7 tuuman näyttö 640x480 -resoluutiolla. Ei kaukonäköisille :rolleyes:
 

Wilpuri

Senile Member
Liittynyt
28.6.1999
Viestit
9041
Sijainti
hki
Tuo maksoi kyllä juu ehkä vähän liikaakin liikaa :(, mutta siinä tuli kyllä ihan kivasti tilpehööriäkin mukana, pari tehoakkua ja muuta.

Langattomia verkkoyhteyksiähän tuossa ei ole infrapunan lisäksi, mutta cf-paikan kautta pääsee ulos valitsemallaan tavalla. Sharp ei tuo tuota eurooppaan, ja Jaappanissahan taitaa olla verkkoa jos jonkinlaista. Ovat sitten sillä selittäneet, että eivät halua sitoa laitetta valmiiksi jo joihinkin tiettyihin systeemeihin kiinni.

Cf-bluetooth -kortti on pöydällä ja olisi säädön alla toimintaan seuraavaksi, mutta kun tässä on tätä muutakin puuhaa niin ei ole vielä ehtinyt.
 

markoj

Custom User
Liittynyt
28.12.1998
Viestit
38925
Kikkeli ois pystyssä viikon jos tommosen sais. On kyllä vähä turhan tyyris, että tota normaalihinnalla viittis ostaa.
 

Sam

Muumipappa
Liittynyt
2.8.2000
Viestit
34097
Sijainti
Muumilaakso
Eka kämmenmikro, mikä herätti minun kiinnostuksen. Onnittelut vaan Wilpurille hienosta laitteesta :)
 

OoPee

Nuori ikäisekseen
Liittynyt
2.6.1999
Viestit
81527
Sijainti
Far enough
ml sanoi:
Soon standardi. Jos kelaat viestejä taaksepäin vonkin verran, niin yritin kuvata sulle noita käynnistyviä palveluja aikasemmin. :thumbup:
Tais sitten mennä ohi silmien. On sen verran monta sivua jo tätä jarnaa, että en jaksa ryhtyä ettimään.
 

OoPee

Nuori ikäisekseen
Liittynyt
2.6.1999
Viestit
81527
Sijainti
Far enough
ml sanoi:
Sorry, :frown: pääasia että OoPee sai apua.
Juu, kyllähän tää näin kivempi on käyttää, mutta edelleenkään mua ei haittais jos sais selville sen ongelman todellisen syyn. Tää ratkaisuhan on enemmän tai vähemmän ongelman kiertämistä, olkootkin että sen kanssa pärjää varsin mainiosti.
 

Miguel

beagle
Liittynyt
20.2.2003
Viestit
21803
Sijainti
West highland
Raidattu linukka on pystyssä. :thumbup:

Hemmetti, asennus oli ihan iisi, kuhan sai vaan Fujitsulta ajurin ja vinkin että ajurikorppu pitää tehdä rompulla olevalla mkfloppy ohjelmalla.

Tämäkin yksinkertainen asia olisi voitu dokumentoida selkeästi, mulla olisi säästynyt viiden yrityksen usean raid-pakan teko väliin.
 
Ylös