home *** CD-ROM | disk | FTP | other *** search
- #!/bin/csh -f
-
- #
- # update path to also look in the same directory from where this script
- # was executed from
- #
-
- set path = (/usr/bsd /bin /usr/bin /usr/sbin /usr/bin/X11)
- set DT_xconfirm = "$DT_utilities/DT_xconfirm"
-
- set path = (${DT_util_path} $path)
-
- # make sure CDROM_ROOT envariable is set
-
- if (! $?CDROM_ROOT) then
- $DT_xconfirm notviewDT
- exit 0
- endif
-
- #
- # see if our server is running
- #
-
- isServerRunning
-
- if ($status == 1) then
- $DT_xconfirm warn "Server is already running."
- exit 0
- endif
-
-
- #
- # find out and remember the user name
- #
-
- if ($?USER) then
- set userName = ~$USER
- else
- $DT_xconfirm nohome
- exit 0
- endif
-
-
- #
- # make sure, server related files have been installed
- #
- if (! -e $userName/$DT_WWW_ROOT) then
- $DT_xconfirm error "Server has not been installed yet.\
- Please install the server and retry."
- exit 0
- endif
-
- #echo "$DT_utilities/dt_httpd.exe -d $userName/$DT_WWW_ROOT & "
-
- #
- # invoke the server
- #
- setenv _RLD_LIST libmcd.so:libX11.so:DEFAULT
- setenv LD_LIBRARY_PATH $DT_utilities/lib:/lib:/usr/lib
- ($DT_utilities/dt_httpd.exe -d $userName/$DT_WWW_ROOT &) > /dev/null
-
- #
- # unlock, for race condition of port numbers
- #
- /usr/bin/rm -rf /tmp/.portlock
-
- exit 1
-