Run a command right before a qube/vm shutdown

Is that not working automatically for you? Shutting down a VM sends a SIGTERM signal to the sshfs process, which should normally cause it to unmount.

Edit: Ah okay, since you’re running sshfs from rc.local I guess it’s possible that it would receive the SIGTERM signal after the network has already been stopped.

Edit 2:

1 Like