I would like to run a systemd service each each time eth0 goes up/down (perhaps a separate service for up and down). This value should change when the ethernet is plugged in. Does anybody know how to accomplish this?
I could write a bash script to poll every X number of seconds, but that may eat up more CPU than I would like and may not be as clean of an implementation.
Any suggestions are welcome. Thanks!