Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem: Reihenfolge von init-skripten
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Kermit_the_frog
n00b
n00b


Joined: 19 May 2003
Posts: 18

PostPosted: Sun Jan 25, 2004 9:20 pm    Post subject: Problem: Reihenfolge von init-skripten Reply with quote

Hallo,
ich habe ein Problem mit einem Init-Skript.

Ich habe folgendes Skript geschrieben: /etc/init.d/quickswitch:
Code:
#!/sbin/runscript
depend() {
        need localmount
        before hostname
}

start() {
        ebegin "Bringing quickswitch up"
        /usr/bin/switchto -s > /dev/null
        eend 0
}

stop() {
        ebegin "Bringing quickswitch down"
        eend 0
}


außerdem habe ich die depend()-Funktion in /etc/init.d/hostname wie folgt geändert:
Code:
depend() {
        need checkroot quickswitch
}

Dennoch wird das hostname-Skript vor dem quickswitch-Skript ausgeführt. Ich möchte aber gern die das quickswitch zuerst geladen wird, weil es unter anderem den Hostname setzt.

Wer kann helfen?

Viele Grüße
Kermit

P.S.:
Code:
/sbin/despscan.sh
und
Code:
rc-update add quickswitch boot
habe ich gemacht.
Back to top
View user's profile Send private message
gebner
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jan 2004
Posts: 100
Location: Wien, EU

PostPosted: Mon Jan 26, 2004 7:52 pm    Post subject: Re: Problem: Reihenfolge von init-skripten Reply with quote

Kermit_the_frog wrote:
/etc/init.d/hostname:
Code:
need checkroot quickswitch


Umgekehrte Reihenfolge probieren?

/etc/init.d/checkroot:
Code:
before *


Vielleicht in /etc/init.d/checkroot auch noch das einfügen:
Code:
after quickswitch

_________________
clue = if 0 == 0 then clue else error "The poster didn't have any clue when he posted this."
Back to top
View user's profile Send private message
Kermit_the_frog
n00b
n00b


Joined: 19 May 2003
Posts: 18

PostPosted: Mon Jan 26, 2004 10:42 pm    Post subject: Re: Problem: Reihenfolge von init-skripten Reply with quote

gebner wrote:
Umgekehrte Reihenfolge probieren?

Hat leider nichts gebracht.

gebner wrote:
Vielleicht in /etc/init.d/checkroot auch noch das einfügen:
Code:
after quickswitch

Das ist gar nicht gut, da fährt das System nicht einmal mehr sauber herunter.

Viele Grüße
Kermit
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum