Matthias Kretschmer wrote:
> Tomas Fasth wrote:
>> Hello Matthias,
>> I'm a bit curious about how many seconds a shutdown takes if you
>> initiate it manually from console. In my configuration it takes
>> around 10 seconds to complete. My colinux run as a service as well
>> and I have never experienced the problem you describe. With a manual
>> shutdown from console you should be able to get an idea of exactly
>> what process is delaying the shutdown process.
> around 10 seconds here, too. May it be that Windows XP Home Edition
> doesn't wait for services while Pro is doing that? It's really strange
> though. After playing a bit with planned tasks I found out that the
> system is shutting down the service whenever I logout from an user (even
> some unrelated user). Very strange. But at least it did a clean shutdown
> :). My next guess is, that the old NT-like login session method stuff is
> buggy, maybe I am switching back to the icon-clicking login screen and
> test if that changes anything. I try to investigate, but now I want to
> finish cooking and have a lunch.
Hm. Have also some tested. WinXP don't wait for shutdown daemon with
standard colinux daemon.
If I use service control center and STOP service manualy, it waits. I
can see it with a opend fltk console.
With idea from Alper have build two special versions of daemon.
First implements the SERVICE_CONTROL_SHUTDOWN now.
Other use SERVICE_CONTROL_SHUTDOWN with fix value of 60 seconds.
Please test this and give us your report.
Based on Monotone Date: 2005-05-25T00:26:36 (snapshot 20050524)
- Added SERVICE_CONTROL_SHUTDOWN
Under W2K can set WaitToKillServiceTimeout as timout,
default is 20 sec.
WinXP don't use this registry?
WinXP always kill the daemon after 20 sec.
- Start and Stop will be logged into application eventlog.
- Special file colinux-daemon-60sec.exe
If daemon received SERVICE_CONTROL_SHUTDOWN set dwWaitHint to
60 seconds for SERVICE_STOP_PENDING.
This is a hard coded value in daemon. If this ok to work, we can
put this into Registry or in command line args for daemon.
On WinXP shutdown waits now longer as 20 Second. I'm feel, that
SCM waits exact 60 seconts. But I'm not shure.
A special linux image with a "sleep 30" in shutdown scripts sayed
me, that shotdown was complete with this prepared daemon on WinXP.
Snapshot 20050524 + patch
- Use a running coLinux and extract modules into /lib/modules.
- Note, this compilation does not include an windows installer.
Remember to reload the linux driver with these commands:
>> colinux-daemon.exe --remove-driver
>> colinux-daemon.exe --install-driver