Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
reihenfolge des startes
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
zbled
Apprentice
Apprentice


Joined: 18 Jun 2002
Posts: 216
Location: Bukowski's Piano Bar

PostPosted: Sun Aug 04, 2002 3:27 pm    Post subject: reihenfolge des startes Reply with quote

hallo zusammen, habt ihr vielleicht eine ahnung, wie ich die reihenfolge ausführbarer skripts / programme im default-runlevel steueren kann? ich habe derzeit das problem, das versucht wird, gshield zu starten, bevor eth0 hochgefahren ist.

gibt es eine möglichkeit, daß zuerst eth0 und anschließend erst gshield gestartet wird?

danke

martin
Back to top
View user's profile Send private message
Pietschy
Apprentice
Apprentice


Joined: 25 Jul 2002
Posts: 237

PostPosted: Sun Aug 04, 2002 3:42 pm    Post subject: Reply with quote

Jo geht

Offne dazu das entsprechende Script im Ordner /etc/init.d

und schreibe
Code:
need net


In die depend() Sektion.

Schau notfalls auch mal in die anderen Scripts damit du siehst wie das Aussehen muss.


Ronny
Back to top
View user's profile Send private message
zbled
Apprentice
Apprentice


Joined: 18 Jun 2002
Posts: 216
Location: Bukowski's Piano Bar

PostPosted: Sun Aug 04, 2002 3:55 pm    Post subject: Reply with quote

ich habe jetzt das

depend() {
need net
}

in die datei /etc/init.d/gShield.rc eingetragen. jedoch ohne erfolg.

könnte man eigentlich net.eth0 zum runlevel 2 und gshield.rc zum runlevel 3 hinzufügen? bzw. gibt es noch eine andere lösung?

nochmals danke
Back to top
View user's profile Send private message
Marvin-X
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jul 2002
Posts: 126

PostPosted: Sun Aug 04, 2002 5:04 pm    Post subject: Re: reihenfolge des startes Reply with quote

zbled wrote:
gibt es eine möglichkeit, daß zuerst eth0 und anschließend erst gshield gestartet wird?


Schau Dir mal folgende Anleitung an.
http://gentoo-deutsch.berlios.de/htmlfromxsl/rc-scripts.html
Habe sie zwar nur überflogen, weil ich mich erst seit einigen Tagen mit Gentoo beschäftige, sieht aber nachdem aus was Dir helfen könnte.
Back to top
View user's profile Send private message
zbled
Apprentice
Apprentice


Joined: 18 Jun 2002
Posts: 216
Location: Bukowski's Piano Bar

PostPosted: Sun Aug 04, 2002 5:45 pm    Post subject: Reply with quote

danke für eure hilfe, ich wußte nicht, daß ich ein extra start script schreiben mußte.. ich habe einfach die datei ins /etc/init.d verzeichnis kopiert und die datei mittels rc-update add gShield.rc default hinzugefügt. anschließend habe ich in diese datei das mit der abhängigkeit reingeschrieben, was nicht funktionierte :)...

für alle, die es interessiert, so geht es (danke an marvin-x und pietschy :)
#!/sbin/runscript

depend() {
need net
}

start() {
ebegin "Starting gShield"
/bin/sh /etc/firewall/gShield.rc --start
eend $? "Failed to start gShield"
}

stop() {
ebegin "Stopping gShield"
/bin/sh /etc/firewall/gShield.rc --stop
eend $? "Failed to stop gShield"
}
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