Thomas Hertweck skrev:
Anders Norrbring wrote:
I have a "small" problem, when the system goes for shutdown or reboot, the waiting time is too short for a process.
I run a VMware on the system, it can take up to 7-10 minutes to shut down all VMs properly, and the system is too eager to shut down. So, before VMware has finished its shutdown properly, SUSE kills the processes which results in heavily screwed up disks in the VMs.
How can I extend the waiting time for shutdown/reboot so that VMware can exit properly?
man shutdown:
-t sec Tell init(8) to wait sec seconds between sending processes the warning and the kill signal, before changing to another runlevel.
Well.. Not really. I want the scripts to actually WAIT until VMware has exited. The -t option to shutdown is used to set the time the system waits from sending the shutdown message to screen until it starts the shutdown process. I need to set the waiting time IN the script for a process to end. VMware simply takes too long for the script to wait, it thinks that VMware is stuck, and kills it instead of waiting for it to end. -- Anders Norrbring Norrbring Consulting