In a previous question, I found out how to shut down all instances of running VMs started through vagrant. I'd like to call that script when logging out of my Desktop Manager which is currently Cinnamon.
Some have pointed to another similar similar, but I did not understand the selected answer(s) enough to be able to solve my issue and put anything into action. The comments below point to start on stopping lightdm
. This sounds like what I'm looking for. That is how can I run a script to stop all VMs (called: stop-vagrant.sh) when my log out of my desktop manager (start on stopping lightdm
)?
vagrant up stop on <condition>
. – Rick Dec 02 '14 at 15:54start on stopping lightdm
– muru Dec 02 '14 at 15:55