Sorry for not writing that long, there was lot to do at work.
My solution now for this problem is using a script that gets called by molly-guard, as testing other script-stuff was really annoying! As Molly-Guard installs it self as shutdown-command and executes each script inside /etc/molly-guard/run.d/ just before doing the real shutdown, it seems the perfect way for me on our server-system.
I know it's just another workaround, but it's the least intrusive way and works very well because shutting down KVMs is done before all the other upstart/sysv-scripting stuff.
Sorry for not writing that long, there was lot to do at work.
My solution now for this problem is using a script that gets called by molly-guard, as testing other script-stuff was really annoying! As Molly-Guard installs it self as shutdown-command and executes each script inside /etc/molly- guard/run. d/ just before doing the real shutdown, it seems the perfect way for me on our server-system. sysv-scripting stuff.
I know it's just another workaround, but it's the least intrusive way and works very well because shutting down KVMs is done before all the other upstart/
Greets
tomcrus