Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-138

Funtoo's Networking should handle return values/errors

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None

      Hi,

      currently, Funtoo's Networking doesn't handle any kind of errors. This is very bad. Imagine the following scenario:

      1. You created
        /etc/init.d/netif.eth0

        and

        /etc/conf.d/netif.eth0

        using the interface template for a static ip configuration for example

      2. You add
        rc_need="netif.eth0"

        to

        /etc/conf.d/anyService

      No you make sure, that your network doesn't work

      When you now start /etc/init.d/netif.eth0 (e.g. while booting) you will see something like

       * Network interface eth0 up ...
      RTNETLINK answers: No such file or directory
      Command failure: ip link set eth0 up
      RTNETLINK answers: No such process               [ ok ]
      

      That's totally wrong! It is not "ok".

      And

      /etc/init.d/netif.eth0 status

      will also return

       * status: started

      which is - obviously - also wrong.

      Side effect: Services depending on netif.eth0 will now also be launched and might end up in an unexpected error condition.

            Unassigned Unassigned
            whissi Thomas D.
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: