need to run a shutdown script

Todd and Margo Chester ToddAndMargo at
Fri Jul 31 19:19:13 CEST 2009

Chris G wrote:
> On Thu, Jul 30, 2009 at 02:58:43PM -0700, Brian J. Tarricone wrote:
>> On 07/29/2009 03:51 PM, toddandmargo at wrote:
>>> okay.  I give up.  I have searched and searched.  I need to run a
>>> shutdown script to turn off all my virtual machines before xfce 4.4.2
>>> starts its shutdown sequence.   I will provide the script.  I just need
>>> the directions as to where to put the script.  How does one configure a
>>> shutdown script?
>> We don't provide shutdown hooks.  You can hack up your xinitrc as Chris  
>> G suggested, but that's not guaranteed to work forever.
>> The "correct" way is for your VM GUI to support session management, and  
>> then when you log out, it will be given a chance to clean up its 
>> state[1].
> Would it really *wait* for an application to "clean up its state",
> i.e. wait for it to close down properly.  It can take quite a long
> time, i.e. several seconds or even tens of seconds for a virtual
> machine to shut down.

This is what I am after.  My VM's are Virtual Box too.  I never
remember to turn them off before powering down and/or logging
off, etc..  So, I wanted to automate the process (VBox provides
a way to tell to VM to power off or save state from the command

>> 	-brian
>> [1] Of course, xfce4-session has behaved slightly out-of-spec forever in  
>> this regard; it only gives the app a chance to save its state if you  
>> check the 'save session' option on logout.  I plan to fix this 
>> eventually...

More information about the Xfce mailing list