[SOLVED] Problem triggering script when network interface goes down

Lemure

Member
Mar 7, 2021
21
3
8
74
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!