Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 447156 - Services using "provide net" starting without dependency (e.g. NetworkManager)
Summary: Services using "provide net" starting without dependency (e.g. NetworkManager)
Status: RESOLVED DUPLICATE of bug 439092
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-13 20:54 UTC by mike
Modified: 2012-12-15 17:15 UTC (History)
0 users

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 mike 2012-12-13 20:54:34 UTC
Services using "provide net" are starting allthough there is no service depending on them via "need net" (e.g. NetworkManager). This is extreme bothersome because it constantly tries  changing the config.

>>> active services (rc-update)
Note: syslog-ng does not "need net" -> conditional script

             acpid |      default                                  
            alsasound | boot                                          
             bootmisc | boot                                          
          consolefont | boot                                          
                devfs |                                        sysinit
                dmesg |                                        sysinit
                 fsck | boot                                          
               hdparm |      default                                  
    hibernate-cleanup | boot                                          
             hostname | boot                                          
              hwclock | boot                                          
              keymaps | boot                                          
            killprocs |                        shutdown               
                local |      default nonetwork                        
           localmount | boot                                          
              modules | boot                                          
             mount-ro |                        shutdown               
                 mtab | boot                                          
               net.lo | boot                                          
             netmount |      default                                  
               procfs | boot                                          
                 root | boot                                          
            savecache |                        shutdown               
                 swap | boot                                          
            swapfiles | boot                                          
               sysctl | boot                                          
                sysfs |                                        sysinit
            syslog-ng |      default                                  
         termencoding | boot                                          
       tmpfiles.setup | boot                                          
                 udev |                                        sysinit
           udev-mount |                                        sysinit
       udev-postmount |      default                                  
              urandom | boot                                          
           vixie-cron |      default                           


>>> runlevel-status

Runlevel: single
Runlevel: nonetwork
 local                                                                                [  started  ]
Runlevel: default
 hdparm                                                                               [  started  ]
 syslog-ng                                                                            [  started  ]
 acpid                                                                                [  started  ]
 netmount                                                                             [  started  ]
 udev-postmount                                                                       [  started  ]
 vixie-cron                                                                           [  started  ]
 local                                                                                [  started  ]
Runlevel: boot
 hwclock                                                                              [  started  ]
 modules                                                                              [  started  ]
 fsck                                                                                 [  started  ]
 root                                                                                 [  started  ]
 mtab                                                                                 [  started  ]
 hibernate-cleanup                                                                    [  started  ]
 swap                                                                                 [  started  ]
 localmount                                                                           [  started  ]
 urandom                                                                              [  started  ]
 sysctl                                                                               [  started  ]
 bootmisc                                                                             [  started  ]
 net.lo                                                                               [  started  ]
 termencoding                                                                         [  started  ]
 keymaps                                                                              [  started  ]
 hostname                                                                             [  started  ]
 consolefont                                                                          [  started  ]
 alsasound                                                                            [  started  ]
 procfs                                                                               [  started  ]
 swapfiles                                                                            [  started  ]
 tmpfiles.setup                                                                       [  started  ]
Runlevel: sysinit
 sysfs                                                                                [  started  ]
 udev-mount                                                                           [  started  ]
 devfs                                                                                [  started  ]
 dmesg                                                                                [  started  ]
 udev                                                                                 [  started  ]
Runlevel: shutdown
 savecache                                                                            [  stopped  ]
 killprocs                                                                            [  stopped  ]
 mount-ro                                                                             [  stopped  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
 NetworkManager                                                                       [  started  ]



>>> content of rc.log


rc shutdown logging started at Thu Dec 13 20:29:04 2012

 * Caching service dependencies ...
 [ ok ]
 * Stopping local
 [ ok ]
 * Stopping vixie-cron ...
 [ ok ]
 * Saving random seed ...
 [ ok ]
 * Deactivating additional swap space ...
 [ ok ]
 * Unmounting network filesystems ...
 [ ok ]
 * Bringing down interface lo
 * Storing ALSA Mixer Levels ...
 [ ok ]
 * Stopping acpid ...
 [ ok ]
 * Stopping syslog-ng ...
 [ ok ]
 * Stopping NetworkManager ...
 [ ok ]
 * Stopping D-BUS system messagebus ...
 [ ok ]
 * Unmounting loop devices
 * Unmounting filesystems
 * Deactivating swap devices ...
 [ ok ]
 * Use of the opts variable is deprecated and will be
 * removed in the future.
 * Please use extra_commands, extra_started_commands or extra_stopped_commands.
 * Stopping udev ...
 [ ok ]
 * Setting hardware clock using the system clock [Local Time] ...
 [ ok ]

rc shutdown logging stopped at Thu Dec 13 20:29:10 2012


rc shutdown logging started at Thu Dec 13 20:29:04 2012

 * Caching service dependencies ...
 [ ok ]
 * Stopping local
 [ ok ]
 * Stopping vixie-cron ...
 [ ok ]
 * Saving random seed ...
 [ ok ]
 * Deactivating additional swap space ...
 [ ok ]
 * Unmounting network filesystems ...
 [ ok ]
 * Bringing down interface lo
 * Storing ALSA Mixer Levels ...
 [ ok ]
 * Stopping acpid ...
 [ ok ]
 * Stopping syslog-ng ...
 [ ok ]
 * Stopping NetworkManager ...
 [ ok ]
 * Stopping D-BUS system messagebus ...
 [ ok ]
 * Unmounting loop devices
 * Unmounting filesystems
 * Deactivating swap devices ...
 [ ok ]
 * Use of the opts variable is deprecated and will be
 * removed in the future.
 * Please use extra_commands, extra_started_commands or extra_stopped_commands.
 * Stopping udev ...
 [ ok ]
 * Setting hardware clock using the system clock [Local Time] ...
 [ ok ]

rc shutdown logging stopped at Thu Dec 13 20:29:10 2012


rc boot logging started at Thu Dec 13 21:29:36 2012

 * Setting system clock using the hardware clock [Local Time] ...
 [ ok ]
 * Autoloaded 0 module(s)
 * Checking local filesystems  ...
/dev/sda3: clean, 1518305/4857856 files, 8337702/19424000 blocks
/dev/sda1: clean, 39/14056 files, 35024/51200 blocks
 [ ok ]
 * Remounting root filesystem read/write ...
 [ ok ]
 * Remounting filesystems ...
 [ ok ]
 * Updating /etc/mtab ...
 [ ok ]
 * Use of the opts variable is deprecated and will be
 * removed in the future.
 * Please use extra_commands, extra_started_commands or extra_stopped_commands.
 * Invalidating stale software suspend images ...
 [ ok ]
 * Activating swap devices ...
 [ ok ]
 * Mounting local filesystems ...
 [ ok ]
 * Configuring kernel parameters ...
 [ ok ]
 * Creating user login records ...
 [ ok ]
 * Cleaning /var/run ...
 [ ok ]
 * Wiping /tmp directory ...
 [ ok ]
 * Restoring Mixer Levels ...
 [ ok ]
 * Setting terminal encoding [UTF-8] ...
 [ ok ]
 * Setting console font [default8x16] ...
 [ ok ]
 * Setting hostname to loriot ...
 [ ok ]
 * Setting keyboard mode [UTF-8] ...
 [ ok ]
 * Loading key mappings [de-latin1] ...
 [ ok ]
 * Bringing up interface lo
 *   127.0.0.1/8 ...
 [ ok ]
 *   Adding routes
 *     127.0.0.0/8 via 127.0.0.1 ...
 [ ok ]
 * Mounting misc binary format filesystem ...
 [ ok ]
 * Loading custom binary format handlers ...
 [ ok ]
 * Activating additional swap space ...
 [ ok ]
 * setting up tmpfiles.d entries ...
 [ ok ]
 * Initializing random number generator ...
 [ ok ]

rc boot logging stopped at Thu Dec 13 20:29:40 2012


rc default logging started at Thu Dec 13 20:29:40 2012

 * Starting syslog-ng ...
 [ ok ]
 * Starting acpid ...
 [ ok ]
 * Starting D-BUS system messagebus ...
 [ ok ]
 * Starting NetworkManager ...
 [ ok ]
Connecting                   1sConnecting...............
 * Marking NetworkManager as inactive. It will automatically be marked
 * as started after a network connection has been established.
 * WARNING: NetworkManager has started, but is inactive
 * WARNING: netmount is scheduled to start when NetworkManager has started
 * Doing udev cleanups
 * Starting vixie-cron ...
 [ ok ]
 * Starting local
WARNING: The state match is obsolete. Use conntrack instead.
 [ ok ]

rc default logging stopped at Thu Dec 13 20:29:43 2012



One small note at the end:
Even there are services which "could need a network-connection"..who says that one really needs it? Do I need a network-connection if i test my webserver (nginx) on localhost / if i open my firebird to read my mails OFFLINE / if I'm using a custom configurtion set by a shell-script NOT using Networkmanager? Please think about removing "need net" again. For whatever reason there may be for it..the must be a better way. Gentoo means opt-in not opt-out, I don't want to remove all the things I don't like but ADD the ones I like.

Reproducible: Always

Steps to Reproduce:
1. startup your Gentoo System with Networkmanager installed without active services with dependencies to it (no active "need net"-services)
2. watch the Networkmanager start, too

Actual Results:  
Networkmanager starts without any visible dependency.

Expected Results:  
Networkmanager stays down.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-12-14 16:26:23 UTC

*** This bug has been marked as a duplicate of bug 439092 ***
Comment 2 mike 2012-12-15 17:15:13 UTC
(In reply to comment #1)
> 
> *** This bug has been marked as a duplicate of bug 439092 ***

I don't really think this is a duplicate because it's not clear what is triggering NetworkManager to start. It's starting ALLTOUGH there is no service active with "need net".