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

openrc/corenetwork: stop fails to kill dhcpcd with template="dhcpcd"

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Duplicate
    • None
    • sys-apps/openrc-0.18.3-r1:0
      sys-apps/corenetwork-1.5.5:0

    Description

      Unable to stop or restart network without rebooting or pkill dhcpcd.
      funtoo ~ # ls -l /etc/init.d/net.eth0
      lrwxrwxrwx 1 root root 10 Nov 6 01:26 /etc/init.d/net.eth0 -> netif.tmpl
      funtoo ~ # cat /etc/conf.d/net.eth0
      template="dhcpcd"
      funtoo rj # rc-config stop net.eth0
      Stopping init script

      • Network dhcpcd eth0 down ...
      • start-stop-daemon: 1 process refused to stop [ ok ]
        funtoo rj # pidof dhcpcd
        22745
        funtoo rj # rc-config start net.eth0
        Starting init script
      • Network dhcpcd eth0 up ...
        There's a PID file for interface eth0. Aborting.
      • ERROR: net.eth0 failed to start
        funtoo rj # pkill dhcpcd
        funtoo rj # rc-config start net.eth0
        Starting init script
      • Network dhcpcd eth0 up ...
        DUID 00:01:00:01:1d:c2:f3:4c:00:24:1d:23:a1:db
        eth0: IAID 1d:23:a1:db
        eth0: soliciting an IPv6 router
        eth0: rebinding lease of 192.168.1.2
        eth0: leased 192.168.1.2 for 3600 seconds
        eth0: adding route to 192.168.1.0/24
        eth0: adding default route via 192.168.1.1
        forked to background, child pid 25139 [ ok ]
        funtoo rj # rc-config restart net.eth0
        Restarting init script
      • Network dhcpcd eth0 down ...
      • start-stop-daemon: 1 process refused to stop [ ok ]
      • Network dhcpcd eth0 up ...
        There's a PID file for interface eth0. Aborting.
      • ERROR: net.eth0 failed to start
        funtoo rj # pkill dhcpcd
        funtoo rj # rc-config restart net.eth0
        Restarting init script
      • Network dhcpcd eth0 up ...
        DUID 00:01:00:01:1d:c2:f3:4c:00:24:1d:23:a1:db
        eth0: IAID 1d:23:a1:db
        eth0: rebinding lease of 192.168.1.2
        eth0: leased 192.168.1.2 for 3600 seconds
        eth0: adding route to 192.168.1.0/24
        eth0: adding default route via 192.168.1.1
        forked to background, child pid 25366 [ ok ]

      Attachments

        1. rc-config-list.txt
          2 kB
        2. rc-config-show-all.txt
          2 kB
        3. rc-status-a.txt
          4 kB
        4. rc-status-s.txt
          6 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cardinal cardinal
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: