platform: ubuntu 22.04
I am performing advance routing and and I have saved all the commands in the /etc/rc.local file. the problem is once the systemd-networkd.service is restarted, the routing table is going to be flushed and my routing including the static routes are removed and bring down the server connectivity.
is there any way to instruct the systemd-networkd.service to run the /etc/rc.local once it is being restarted? I'm using default netplan config.
the systemd-networkd.service is being restarted once the packages are being upgraded.
Regards,
rc-local.service
. why not add that to the systemd chain?