You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've dropped in a cockpit.socket override at /etc/systemd/system/cockpit.socket.d/listen.conf
[Socket]BindToDevice=wg0
And this works, except when the system is restarted.
# journalctl -u cockpit.socket -u [email protected]
-- Boot 029c048a77f641a88420e0c0b2ab7315 --
Nov 30 03:38:32 devbox1 systemd[1]: Dependency failed for Cockpit Web Service Socket.
Nov 30 03:38:32 devbox1 systemd[1]: cockpit.socket: Job cockpit.socket/start failed with result 'dependency'.
Nov 30 03:38:35 devbox1 systemd[1]: Starting WireGuard via wg-quick(8) for wg0...
Nov 30 03:38:35 devbox1 wg-quick[1248]: [#] ip link add wg0 type wireguard
Nov 30 03:38:35 devbox1 wg-quick[1248]: [#] wg setconf wg0 /dev/fd/63
# systemctl show cockpit.socket | grep -i after
After=sys-subsystem-net-devices-wg0.device systemd-journald.socket system.slice sysinit.target
# systemctl show cockpit.socket | grep -i requires
Requires=sysinit.target system.slice
Expecting that when I see the After=sys-subsystem-net-devices-wg0.device dependency everything is setup. There can be something about other dependencies at play here, in which someone else can shed insight. The way I managed to work around the issue in the end was by adding the following lines to my listen.conf drop-in
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've dropped in a
cockpit.socket
override at/etc/systemd/system/cockpit.socket.d/listen.conf
And this works, except when the system is restarted.
Expecting that when I see the
After=sys-subsystem-net-devices-wg0.device
dependency everything is setup. There can be something about other dependencies at play here, in which someone else can shed insight. The way I managed to work around the issue in the end was by adding the following lines to my listen.conf drop-inBut looking for a "better" approach, cause this feels like I'm patching around the issue.
RHEL 9.5 / Cockpit 323.1
Beta Was this translation helpful? Give feedback.
All reactions