Stop container if fstab mount fails?

Simpuhl

New Member
Mar 10, 2024
5
1
3
Situation:
I have a Proxmox qBitorrent LXC that has some fstab mounts to my Synology nas via NFS.

What i'd like if that if the Nas where to fail/reboot/etc... the qBitorrent LXC would automatically shut down before qBitorrent starts marking all the torrents as failed and then I have to recheck them all.

I was thinking if theres a script maybe or something like constant ping and if the ping fails then shut down the lcx?
 

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!