Seems like you should be able to do this with a systemd service. You didn't provide any details on what didn't work with this approach, but if your service has "Requires=network.target" and use ExecStop, you should be a good part of the way there. If it doesn't work, posting useful information including what OS and version, exact log information, etc would be helpful.
As far as option 2, I've never explored that.
Perhaps a useful hint: While you're trying to get the plumbing working, use the logger command to provide useful log information into the system journal. You can do things like log the network state, etc.
As far as option 2, I've never explored that.
Perhaps a useful hint: While you're trying to get the plumbing working, use the logger command to provide useful log information into the system journal. You can do things like log the network state, etc.
Statistics: Posted by bls — Wed Dec 13, 2023 9:14 pm