need to run a shutdown script

Chris G cl at isbd.net
Fri Jul 31 13:20:55 CEST 2009


On Thu, Jul 30, 2009 at 02:58:43PM -0700, Brian J. Tarricone wrote:
> On 07/29/2009 03:51 PM, toddandmargo at verizon.net 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.

> 	-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...

-- 
Chris Green




More information about the Xfce mailing list