Thomas Hertweck skrev:
Anders Norrbring wrote:
Thomas Hertweck skrev:
[...]
No. It should be the time between sending a SIGTERM and a SIGKILL signal.

The time when to start the shutdown process is given as a shutdown
argument, not an option.
My mistake, sorry.
Anyway, what's the default time? I can't see any option to find out..

You should really familiarise yourself with the manual pages... :)

man init:

When init is requested to change the runlevel, it sends the warning
signal SIGTERM to all processes that are undefined in the new runlevel.
  It then waits 5 seconds before forcibly terminating these processes
via the SIGKILL signal.[...]
telinit can also tell init how long it should wait between sending
processes the SIGTERM and SIGKILL signals. The default is 5 seconds,
but this can be changed with the -t sec option.



Yeah.. But that 5 second period is happening far away from the rc master script that controls the processes. The VMware processes are started and stopped via its rc script /etc/init.d/vmware, so the "problem" isn't in the end of everything, the problem is that the halt (shutdown) is called even though the stop script has not finished.

I hope you follow my thoughts now, so you understand what I'm writing about.

--

Anders Norrbring
Norrbring Consulting

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to