Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rc script dependency [cupsd vs. net]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
mb
Guru
Guru


Joined: 25 Apr 2002
Posts: 355
Location: Hessen | .de

PostPosted: Sat Apr 27, 2002 8:22 pm    Post subject: rc script dependency [cupsd vs. net] Reply with quote

hi,

my notebook is only sometimes connected via eth0 [dhcp] to a network. at home i use an wireless lan on eth1 [static ip].

my problem that the net.eth0 script will fail when i'm at home and also all other scripts depending on net.
is there a way to continue anyway (without bringing up eth0) ????

#mb
Back to top
View user's profile Send private message
Nitro
Bodhisattva
Bodhisattva


Joined: 08 Apr 2002
Posts: 661
Location: San Francisco

PostPosted: Sat Apr 27, 2002 8:33 pm    Post subject: Reply with quote

Do you have a startup script for eth1?

I *think* that if you had net.eth1 startup, and it ran successfully, then all the need net dependencies would also be satisfied. That's just a guess, I don't have wireless LAN to play with on my little old laptop.
_________________
- Kyle Manna

Please, please SEARCH before posting.

There are three kinds of people in the world: those who can count, and those who can't.
Back to top
View user's profile Send private message
mb
Guru
Guru


Joined: 25 Apr 2002
Posts: 355
Location: Hessen | .de

PostPosted: Sat Apr 27, 2002 10:12 pm    Post subject: Reply with quote

unfortunally not...

i do have net.eth0 and net.eth1....

Code:

root@ares micha # /etc/init.d/net.eth0 start
 * Bringing eth0 up...
 * Failed to bring eth0 up                                                  [ !! ]

root@ares micha # /etc/init.d/net.eth1 start
 * Bringing eth1 up...                                                      [ ok ]
 *   Setting default gateway...                                             [ ok ]
root@ares micha # /etc/init.d/cupsd start
 * Bringing eth0 up...
 * Failed to bring eth0 up                                                  [ !! ]

 * ERROR:  Problem starting needed services.
 *         "cupsd" was not started.



its also strange to set ip/gateway for the wireless in the conf.d/net instead of pcmcia/wireless.opts.... but this is an other topic ;)

#mb
Back to top
View user's profile Send private message
Nitro
Bodhisattva
Bodhisattva


Joined: 08 Apr 2002
Posts: 661
Location: San Francisco

PostPosted: Sat Apr 27, 2002 10:50 pm    Post subject: Reply with quote

Maybe take a peek at http://www.gentoo.org/doc/rc-scripts.html and see if that is any help.
_________________
- Kyle Manna

Please, please SEARCH before posting.

There are three kinds of people in the world: those who can count, and those who can't.
Back to top
View user's profile Send private message
mb
Guru
Guru


Joined: 25 Apr 2002
Posts: 355
Location: Hessen | .de

PostPosted: Sun Apr 28, 2002 9:33 am    Post subject: Reply with quote

good point... rtfm ;)

if found:

Quote:

The USE dependency type

The service is not critical for starting the current service, but should be started before the current if it is used.

...

USE is thus a "weak" dependency.


ok.. i gave it a try... but nope :( same problem..

so.. i figured out, that the interpreter #!/sbin/runscript wants to start eth0.. replacing with #!/bin/sh works fine...

strange, strange....

#mb
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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