Score:0

Run ubuntu service after netplan has been applied at startup

hm flag

I'm running Ubuntu 22.04.1 LTS where I want to run a service after the configuration in netplan has been applied at startup.

Why? Because netplan renames an interface I need to use in my service.

Why rename? Because I need to make sure that the interface name corresponds to the same physical location of the nic on all servers. This is done by this netplan configuration.

devX:
match:
macaddress: aa:bb:cc:dd:ee:ff
set-name: devX

I tried

Requires=network-online.target
After=network-online.target

But I can see in the syslog that the interfaces are renamed after my service is started.

As a result, my service fails because the interface doesn't exist.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.