Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12659 - strong net dependency of cupsd,vmware init scripts?
Summary: strong net dependency of cupsd,vmware init scripts?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-24 06:45 UTC by Georgios E. Kylafas
Modified: 2003-07-17 10:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Georgios E. Kylafas 2002-12-24 06:45:33 UTC
/etc/init.d/cupsd contains the following lines:    
   
depend() {   
        need net   
}   
   
However, I fail to see why "net" is a strong dependency for cups since one   
(like myself for instance) could use cups to print to a local printer.   
And what if someone wants to isolate himself from a network while still being  
able to print?  
  
I would propose to change the dependency to: "use net" 
 
For the same reasons, I would propose the same change to /etc/init.d/vmware
Comment 1 SpanKY gentoo-dev 2002-12-24 07:30:48 UTC
vmware is fixed 
Comment 2 Donny Davies (RETIRED) gentoo-dev 2003-01-04 17:40:49 UTC
printing guy ...
Comment 3 Thomas Raschbacher gentoo-dev 2003-01-28 16:59:44 UTC
well cuz of the web-config gui (which is restricted to localhost now in
1.1.18-r1) u would need net (even if only localhost)

not sure if i shoudl change this..
Comment 4 Georgios E. Kylafas 2003-01-31 06:02:20 UTC
> well cuz of the web-config gui (which is restricted to localhost now in  
> 1.1.18-r1) u would need net (even if only localhost)  
  
localhost does not provide the "net" virtual service, only actual network 
interfaces do (like eth0 or ppp0). 
The web-config gui you mention works just as well with virtual "net" not 
provided (since net.lo is included at the boot runlevel).  
 
There really is not need for "need net" :-) 
Comment 5 Tomasz Olszewski 2003-05-09 17:10:04 UTC
Strong dependency on net in cups initscript is definitely not what we want. I am connected to the Internet through a local network which uses a dhcp server. The problem is that sometimes dhcp is down and in such cases eth0 can't be brought up.  
Without network (because of the dependency) cups' initscript refuses to start cupsd and I'm unable to print. This must be fixed.
Comment 6 Danek Duvall 2003-05-31 03:10:46 UTC
This is the case for other init scripts as well.  Basically, anything that binds to INADDR_ANY (0.0.0.0) will work just fine without an IP address being assigned to any interfaces.  It would only need networking enabled in a very general sense, and the current networking scripts don't have that sort of granularity.

Similarly, anything that binds only to localhost doesn't need the other interfaces to be configured.

Examples of this include iptables and openssh.

Is it worth filing bugs against each of these?
Comment 7 Thomas Raschbacher gentoo-dev 2003-06-26 14:07:08 UTC
since i'm not the only printing team member now: reassign'in
Comment 8 Heinrich Wendel (RETIRED) gentoo-dev 2003-07-16 08:09:07 UTC
fixed.
Comment 9 Georgios E. Kylafas 2003-07-16 16:15:39 UTC
Fixed where and how exactly? 
The new cups version I just installed (net-print/cups-1.1.19-r1, ~x86), still uses the same: 
 
depend() { 
        use net 
} 
 
in its initscript (/etc/init.d/cupsd). 
Comment 10 Heinrich Wendel (RETIRED) gentoo-dev 2003-07-17 07:03:39 UTC
that's correct, it was need net before 
Comment 11 Georgios E. Kylafas 2003-07-17 10:09:30 UTC
This is what happens when you file bug reports at 2:00 in the morning :-). 
Sorry to have bothered you