Commit 1df35c30 authored by Frank Bergmann's avatar Frank Bergmann
parent 6073d0dc
......@@ -14,7 +14,19 @@ set context [list $page_title]
# We do this as a schedule proc, so the server will have time to serve the page
ad_schedule_proc -thread t -once t 2 ns_shutdown
global tcl_platform
set platform $tcl_platform(platform)
switch $platform {
"windows" {
# Restart doesn't work on Windows services, so handle it here...
ad_schedule_proc -thread t -once t 2 ns_shutdown -restart
}
default {
# Don't modify default behavior.
# Trust Linux to handle restarts
ad_schedule_proc -thread t -once t 2 ns_shutdown
}
}
# Local variables:
# mode: tcl
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment