1 2 3 4 5 6 7 8 9 10 11 12 13
[Unit] Description=run command when network connection changes. Wants=network-online.target After=network-online.target [Service] Environment="SCRIPT_ARGS=%I" ExecStart=/usr/bin/netchangexec $SCRIPT_ARGS Restart=on-failure RestartSec=5 [Install] WantedBy=default.target