source: nanoscale/trunk/start_nanoscale.sh.in @ 6505

Last change on this file since 6505 was 6267, checked in by ldelgass, 7 years ago

Enable starting twm in startup script

  • Property svn:mergeinfo set to (toggle deleted branches)
    /branches/1.3/packages/vizservers/start_nanoscale.sh.in4525
    /branches/nanovis2/packages/vizservers/start_nanoscale.sh.in3001-3361
File size: 874 bytes
RevLine 
[2343]1#! /bin/sh
2
3# Fail on errors
4set -e
5
6exec_prefix="@exec_prefix@"
7bindir="@bindir@"
8libdir="@libdir@"
9
[2350]10# lspci is either in /sbin or /usr/sbin
[4062]11PATH=/sbin:/usr/sbin:${bindir}:${PATH}
12LD_LIBRARY_PATH=${libdir}:${LD_LIBRARY_PATH}
13export PATH LD_LIBRARY_PATH
[2350]14
[2343]15# Determine the number of video cards we have.  The new render server
16# motherboards have the useless XGI Volari onboard video controllers (no 3D
17# capabilities) so we have to make sure we count only the nVidia cards.
18
[2787]19numVideo=`lspci | fgrep VGA | fgrep -i NVIDIA | wc -l`
[2343]20
21# Don't let nanoscale and the visualization servers run away.  Limit cpu time
22# to 20 minutes.
23
24minutes=20
25ulimit -t $(expr ${minutes} \* 60 )
26
27# Make /tmp the current working dirctory.
28cd /tmp
29
[4624]30# Start a window manager so geovis doesn't crash
[6267]31pgrep -u rappture -x twm > /dev/null || twm -display :0 &
[4624]32
[2348]33exec ${bindir}/nanoscale -x ${numVideo}
Note: See TracBrowser for help on using the repository browser.