[SOLVED] Problem triggering script when network interface goes down

Lemure

Member
Mar 7, 2021
21
3
8
75
First quick question, in the network screen of a proxmox node, what does Apply Configuration does exactly? I have tried 'systemctl restart networking' and has different effects than the Apply Configuration button (or triggering a network restart through the Proxmox API, which I am guessing it is what the button does). So I would like to know what does Proxmox do when it says it is restarting the network.

The main issue, is that I am trying to trigger an script when a network interface goes down. I have set up the script:

Code:
iface en10 inet manual
        down downscript
        post-down postdownscript

The scripts are in /etc/network/if-down.d and /etc/network/if-post-down.d . I have tried also to link them in the folder
Code:
down /etc/network/if-down.d/downscript
, but still not getting triggered. If anyone can indicate me how to get it properly configured so the script gets triggered when the interface goes down, I would be thankful.