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

Last change on this file since 5119 was 5042, checked in by ldelgass, 7 years ago

Remove geovis config from release branch

File size: 3.5 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#       vmdshow                 2018            testing
12#       pymolproxy              2020            production
13#
14# The syntax is
15#       register_server <name> <port> ?<flags>? {
16#           commands...
17#       } {
18#           variables...
19#       }
20#
21# Registers a server by <name> at port <port>.
22# When a connection is made to <port>, <command> is run.
23# Environment variables will be set before executing command. 
24#
25# Note: Don't set DISPLAY here. nanoscale itself sets the DISPLAY
26#       variable.
27#
28# Defaults:
29#   o Server reads from file descriptor 0.
30#   o Server writes to descriptor 1.
31#   o Server stdout and stderr are redirected to a log file. 
32#
33
34set exec_prefix "@exec_prefix@"
35set bindir "@bindir@"
36set libdir "@libdir@"
37
38# NanoVis --
39#       Server Type     Volume renderer
40#       Port            2000
41#       Threaded        yes
42# Notes:
43#       o Continue to use default options until we offically upgrade
44#         nanovis to the latest release.  We are currently using a 1.2
45#         version of nanovis.
46#       o Requires change to 1.2 nanovis.  Can't redirect stderr to log
47#         or X will complain about performing socket operation on non-socket
48#         descriptor.
49#
50register_server nanovis 2000 \
51    -output 3 -logstdout no -logstderr no \
52{
53    ${bindir}/nanovis -o 3 -p ${libdir}/shaders:${libdir}/resources
54} {
55    LD_LIBRARY_PATH ${libdir}
56    __GL_SYNC_TO_VBLANK 0
57}
58
59# VtkVis --
60#       Server type     3D drawings (scene graphs). Contour and surface graphs.
61#       Port            2010
62#       Threaded        yes
63# Notes:
64#       o Removed ${vtkdir} from LD_LIRBRARY_PATH. Not needed with VTK 6.
65#       o Using new features in nanoscale/vtkvis to use file descriptor 3
66#         for server output.  No automatic logging of stdout and stderr.
67#
68register_server vtkvis 2010 \
69    -output 3 -logstdout no -logstderr no \
70{
71    ${bindir}/vtkvis -o 3
72} {
73    LD_LIBRARY_PATH ${libdir}
74    __GL_SYNC_TO_VBLANK 0
75}
76
77# PymolProxy --
78#       Server type     Molecular layouts using Pymol viewer.
79#       Port            2020
80#       Threaded        yes
81# Notes:
82#       o Need PYMOL_SITE_PATH for parallelpiped box.py location.
83#       o Makes no sense to log stdout and stderr of the proxy.
84#       o Renamed to just pymolproxy and removed non-threaded entry.
85#
86register_server pymolproxy 2020 \
87    -logstdout no -logstderr no \
88{
89    ${bindir}/pymolproxy ${bindir}/pymol -p -q -i -x -X 0 -Y 0
90} {
91    PYMOL_SITE_PATH ${libdir}/pymol
92    LD_LIBRARY_PATH ${libdir}
93    __GL_SYNC_TO_VBLANK 0
94}
95
96# VmdShow --
97#       Server type     Molecular layouts using VMD viewer (for mdshowcase).
98#       Port            2018
99#       Threaded        no
100# Notes:
101#       o Commands are sent directly to the VMD process that uses custom
102#         TCL code to process.
103#       o Redirect input to descriptor 3: Otherwise VMD will get select hit.
104#       o Redirect output to descriptor 4: Lots of information written to
105#         stdout and stderr of VMD.  Captured in log file.
106#       o Executing binary without wrapper shell script. Requires VMDDIR set.
107#       o Meshing programs surf and msms require explicit environment variables.
108#       o __GL_SYNC_TO_VBLANK probably doesn't matter.
109#       o Client doesn't send data files to VMD, but file paths.  Unlikely
110#         client will block on a large write. 
111#       
112register_server vmdshow 2018 \
113    -input 3 -output 4 -combinelogs yes \
114{
115    ${libdir}/vmd/vmd_LINUXAMD64 -startup ${libdir}/vmd/vmdserver.tcl \
116        -args -stdio
117} {
118    VMDDIR ${libdir}/vmd
119    SURF_BIN ${libdir}/vmd/surf
120    MSMSSERVER ${libdir}/vmd/msms
121    STRIDE_BIN ${libdir}/vmd/stride
122    LD_LIBRARY_PATH ${libdir}
123    __GL_SYNC_TO_VBLANK 0
124}
Note: See TracBrowser for help on using the repository browser.