Search:

Type: Posts; User: maxwellcom; Keyword(s):

Search: Search took 0.03 seconds.

  1. [SOLVED] Re: Execute Script Before Shutdown Sequence (GUI Still Available)

    Update: Because of Ubuntu's curious hybrid state between upstart and init.d/SysV (I think), I had to add one additional step so that the graceful shutdown would work in every scenario.

    To init.d...
  2. [SOLVED] Re: Execute Script Before Shutdown Sequence (GUI Still Available)

    I am very happy to report success.

    First, I created the script /home/<user>/Script/vmhalt:


    #!/bin/bash

    # set primary variables
    credentials="/path/to/credentials/file/.vmcred"
  3. [SOLVED] Re: upstart

    While originally researching a solution, I did come across that very link. It looks like a robust replacement for init.d and likely to allow the sort of controlled vm shutdown I'm trying to develop,...
  4. [SOLVED] Re: Execute Script Before Shutdown Sequence (GUI Still Available)

    Using this post I modified the script to allow a sudo shutdown and implemented a launcher - seems like it will do the trick. Thanks!



    #if vm is running, send shutdown signal and wait 5m for...
  5. [SOLVED] Re: Execute Script Before Shutdown Sequence (GUI Still Available)

    That would work if I could somehow modify the standard GUI shutdown to point to the main script. At least then I could try to remember to always shutdown via GUI (and not "shutdown -h now" from...
  6. [SOLVED] Execute Script Before Shutdown Sequence (GUI Still Available)

    I made a simple script that issues a network signal to shut down a virtual machine running in vmplayer:



    #!/bin/bash

    #if vm is running, send shutdown signal and wait 5m for shutdown.
    ...
Results 1 to 6 of 6