Is there a way to have a script automatically triggered when a truecrypt volume is mounted or dismounted? I don't mean a script to actually perform the mount or dismount, I want scripts that can react to truecrypt mounting or dismounting a volume.
Specifically, I've got MySQL databases hosted on a truecrypt volume. I've got truecrypt setup to dismount when I logout or lock my desktop session, but MySQL doesn't react well to the database disappearing out from under it. I'd like to have scripts fired on dismount to stop mysqld and start it on mount.
(Windows 7, TrueCrypt 7.0)