Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
acs-admin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
acs-admin
Commits
1df35c30
Commit
1df35c30
authored
May 18, 2017
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Handle restart on Windows.
See:
http://openacs.org/forums/message-view?message_id=5367113
parent
6073d0dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
server-restart.tcl
www/server-restart.tcl
+13
-1
No files found.
www/server-restart.tcl
View file @
1df35c30
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment