source: nanoscale/branches/1.0/renderservers.tcl.in @ 6638

Last change on this file since 6638 was 6638, checked in by ldelgass, 2 years ago

merge r6630 from nanoscale trunk (timeout for pymolproxy)

File size: 3.2 KB
Line 
1#
2# This file is read by nanoscale to determine which ports to listen
3# to and the how to start the associated render server.
4#
5# Render servers
6#
7#       Server                  Port            Usage
8#       ======                  ====            =====
9#       nanovis                 2000            production
10#       vtkvis                  2010            production
11#       geovis                  2015            testing
12#       vmdshow                 2018            testing
13#       pymolproxy              2020            production
14#
15# The syntax is
16#       register_server <name> <port> ?<flags>? {
17#           commands...
18#       } {
19#           variables...
20#       }
21#
22# Registers a server by <name> at port <port>.
23# When a connection is made to <port>, <command> is run.
24# Environment variables will be set before executing command.
25#
26# Note: Don't set DISPLAY here. nanoscale itself sets the DISPLAY
27#       variable.
28#
29# Defaults:
30#   - Server reads from file descriptor 0.
31#   - Server writes to descriptor 1.
32#   - Server stdout and stderr are redirected to a log file.
33#
34
35set exec_prefix "@exec_prefix@"
36set bindir "@bindir@"
37set libdir "@libdir@"
38
39# GeoVis --
40#       Server Type     Map and globe renderer
41#       Port            2015
42#       Threaded        yes
43# Notes:
44#
45register_server geovis 2015 -output 3 -logstdout 0 -logstderr 0 {
46    ${bindir}/geovis -o 3 -t 43260 -p ${libdir}/resources
47} {
48    LD_LIBRARY_PATH ${libdir}
49    OSGEARTH_DEFAULT_FONT /usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf
50    __GL_SYNC_TO_VBLANK 0
51}
52
53# NanoVis --
54#       Server Type     Volume renderer
55#       Port            2000
56#       Threaded        yes
57# Notes:
58#
59register_server nanovis 2000 -output 3 -logstdout 0 -logstderr 0 {
60    ${bindir}/nanovis -o 3 -t 43260 -p ${libdir}/shaders:${libdir}/resources
61} {
62    LD_LIBRARY_PATH ${libdir}
63    __GL_SYNC_TO_VBLANK 0
64}
65
66# VtkVis --
67#       Server Type     VTK based 3D renderer
68#       Port            2010
69#       Threaded        yes
70# Notes:
71#
72register_server vtkvis 2010 -output 3 -logstdout 0 -logstderr 0 {
73    ${bindir}/vtkvis -o 3 -t 43260
74} {
75    LD_LIBRARY_PATH ${libdir}
76    __GL_SYNC_TO_VBLANK 0
77}
78
79# PymolProxy --
80#       Server Type     Molecular layouts using Pymol viewer
81#       Port            2020
82#       Threaded        yes
83# Notes:
84#       - Need PYMOL_SITE_PATH for parallelpiped box.py location.
85#       - For debug tracing, redirect stderr of the proxy to a log file.
86#
87register_server pymolproxy 2020 -logstdout 0 -logstderr 0 -combinelogs 0 {
88    ${bindir}/pymolproxy -t 43260 -- ${bindir}/pymol -p -q -i -x -X 0 -Y 0
89} {
90    PYMOL_SITE_PATH ${libdir}/pymol
91    LD_LIBRARY_PATH ${libdir}
92    __GL_SYNC_TO_VBLANK 0
93}
94
95# VmdShow --
96#       Server Type     Molecular layouts using VMD viewer (for mdshowcase)
97#       Port            2018
98#       Threaded        no
99# Notes:
100#       - Commands are sent directly to the VMD process that uses custom
101#         TCL code to process.
102#       - Redirect input to descriptor 3: Otherwise VMD will get select hit.
103#       - Redirect output to descriptor 4: Lots of information written to
104#         stdout and stderr of VMD.  Captured in log file.
105#       - Executing binary without wrapper shell script. Requires VMDDIR set.
106#       - Meshing programs surf and msms require explicit environment variables.
107#       - Client doesn't send data files to VMD, but file paths.  Unlikely
108#         client will block on a large write.
109#
110register_server vmdshow 2018 -input 3 -output 4 -combinelogs 1 {
111    ${libdir}/vmd/vmd_LINUXAMD64 -startup ${libdir}/vmd/vmdserver.tcl \
112        -args -stdio
113} {
114    VMDDIR ${libdir}/vmd
115    SURF_BIN ${libdir}/vmd/surf
116    MSMSSERVER ${libdir}/vmd/msms
117    STRIDE_BIN ${libdir}/vmd/stride
118    __GL_SYNC_TO_VBLANK 0
119}
Note: See TracBrowser for help on using the repository browser.