36
!/bin/sh
#
# description: VNC instance for webMathematica
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
RETVAL=0
# See how we were called.
case "$1" in
  start)
        # Start daemons.
        echo  n "Starting VNC: "
        cd ~tomcat
        su tomcat  c  /usr/bin/vncserver  geometry 800x600  depth 
24 :1 >/dev/null 2>/dev/null 
        RETVAL=$?
        [ $RETVAL  eq 0 ] && touch /var/lock/subsys/vnc
        echo
        ;;
  stop)
        # Stop daemons.
        echo  n "Shutting down VNC: "
        cd ~tomcat
        su tomcat  c  /usr/bin/vncserver  kill :1 >/dev/null 
2>/dev/null 
        RETVAL=$?
        [ $RETVAL  eq 0 ] && rm  f /var/lock/subsys/vnc
        echo
        ;;
  restart)
        $0 stop
        $0 start
        RETVAL=$?
        ;;
  *)
        echo "Usage: vnc {start|stop|restart}"
        exit 1
esac
exit $RETVAL
Windows
The  way  to  run  programs  automatically  on  Windows  is  to  install  them  as  a  service.  This  can  only  be  done  for
Windows NT, Windows 2000 and Windows XP.
Installing Tomcat as a service on Windows is quite easy for Tomcat 4.1, since the installer will give you the option
of installing it as a service. If you did not choose this as an option when you first installed Tomcat you can rerun the
installer.
You  can get  extra information  about  the services  you have  installed  by going  to  the Administrative  Tools
icon of the Control Panel. Here you will see a Services icon which you can open. The Services dialog
that  opens  will  show  the  services  that  have  been  installed  on  your  machine,  you  should  see  one  for  Tomcat.  The
dialog will tell you if the service has started or not
 1988 2003
 and
 Wolfram
 will tell
 Research,
 you
 Inc. All
 how it
 rights
 is launched.
 reserved.
 Typically the installer makes
it an Automatic startup type which causes it to launch when the computer is booted. Clicking on the Tomcat entry
and selecting Properties will give you a dialog that allows you to configure the service. 
<





New Page 1








Home : About Us : Network : Services : Support : FAQ : Control Panel : Order Online : Sitemap : Contact : Terms Of Service

 

Our web partners:  Jsp Web Hosting  Unlimited Web Hosting  Cheapest Web Hosting  Java Web Hosting  Web Templates  Best Web Templates  Web Design Templates  Interland Web Hosting  Cheap Web Hosting  Filemaker Web Hosting  Tomcat Web Hosting  Quality Web Hosting  Best Web Hosting  Mac Web Hosting

 
 

Virtualwebstudio. Business web hosting division of Vision Web Hosting Inc. All rights reserved

Comcast Web Hosting