https://bugzilla.suse.com/show_bug.cgi?id=1186249
https://bugzilla.suse.com/show_bug.cgi?id=1186249#c4
Marius Tomaschewski changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags|needinfo?(mt@suse.com) |
--- Comment #4 from Marius Tomaschewski ---
(In reply to Reinhard Max from comment #3)
(In reply to Reinhard Max from comment #1)
Oops, these two calls are indeed outdated and should be replaced by:
/usr/libexec/dhcp/dhcpd -4 try-restart
/usr/libexec/dhcp/dhcpd -6 try-restart
I've just committed this fix to /network:dhcp/dhcp in OBS.
(In reply to Manfred Schwarb from comment #2)
I use wicked, and the connection to the wlan-box is configured with
STARTMODE='ifplugd'
DHCPD_IFUP_RESTART='yes'
Marius, can you tell us what mechanism is supposed to trigger this
mechanism, or whether it is outdated and should be removed?
This are all very old and sysconfig specific scripts / using sysconfig
states, paths, ... or some assumptions as it were from SLE-11.
Wicked provides some extend of backward compatibility to the config,
but intentionally does not implicitly start any of the (often not
adopted -> causing harm) global sysconfig scripts installed by other
packages.
But they're usable explicitly -- wicked supports also the sysconfig
argument order the ifcfg hooks, which are (see "man 5 ifcfg"):
- PRE_UP_SCRIPT: before `ip link set up` is called
- POST_UP_SCRIPT: last step in `ifup` when IP,... is set
- PRE_DOWN_SCRIPT: first step in `ifdown`
- POST_DOWN_SCRIPT: after `ip link set down`
with multiple argument call schemes for the sripts:
- systemd:" scheme
- wicked:<script> scheme
- compat:suse:<script> scheme
where the "compat:suse" is using the same:
$SCRIPTNAME [<config>] <interface> [-o <options>]
arguments as /etc/sysconfig/network/scripts/dhcpd-restart-hook
does and defaults to search in the directory, so you can set:
POST_UP_SCRIPT="compat:suse:dhcpd-restart-hook"
An alternative to a script is to use the `systemd:` scheme and
an own systemd service calling whatever is needed.
Note, that `ifdown` is not using configs in /etc/sysconfig/network
as it is, but it's _last_ content applied by `ifup` (see the
`wicked show-config` output to see what `ifup` is applying).
That is, you need to call `ifup` to apply them to wickedd-nanny,
before the *_DOWN_* scripts are called in a in a later `ifdown`.
The DHCPD_IFUP_RESTART variable were a workaround causing to restart
the dhcpd daemon services in some cases, e.g. when a bridge were re-
created. With systemd, such a netdev binding can be also expressed
using the `BindsTo=sys-subsystem-net-devices-eth0.device` for example.
ISC dhcp starts and binds sockets to an interfaces but it does not
monitor them, but continues to use a socket/descriptor to a network
interface/device (ifindex), that has been deleted and re-created...
and thus serves on /dev/null.
Further, it wants that the interfaces (DHCPD(6)_INTERFACE=...) are
available at start time of the service, so this hook were never
supposed to work with hotplug interfaces that exist only sometimes
and the /usr/libexec/dhcp/dhcpd script most probably can't handle
this dynamics -- I don't remember these details any more.
--
You are receiving this mail because:
You are on the CC list for the bug.