Supermap iServer Ubuntu Boot script

Source: Internet
Author: User

Set the relevant files in the/etc/init.d/folder

1, in order to ensure that the creation of the file read and write permissions consistent with the default, we only need CP a default boot file to

sudo cp single Iserver

2, delete all the information inside the Iserver

Tip: Direct execution ": 1, $d"

Then add the following information, and note the relevant modifications based on your own environment variables

#!/bin/bash
#description: Startupscriptforsupermapiserver

Export ISERVER_HOME=/OPT/SUPERMAPISERVER8C
Export lic_home=/opt/supermapiserver8c/support/supermap_license/support/aksusbd-2.4.1-i386
Case "$" in
Start
echo "-----Startup iserver-----"

echo "-----------------Dunst lic-------------"
CD $LIC _home
sudo./dunst
echo "----------------Dinst lic---------------"
CD $LIC _home
sudo./dinst
SH $ISERVER _home/bin/startup.sh
echo "-----Startup iserver Successful-----"
;;

Stop
echo "-----Shutdown iserver-----"
SH $ISERVER _home/bin/shutdown.sh
echo "-----Shutdown iserver Successful-----"
;;

Restart
echo "-----Restart iserver-----"
SH $ISERVER _home/bin/shutdown.sh
SH $ISERVER _home/bin/startup.sh
echo "-----Restart Iserver Successful-----"
;;
*)
Echo ' Usage:iserver Start|stop|restart '
;;
Esac

3./etc/init.d/iserver Set as Executable

sudo chmod +x/etc/init.d/iserver

4, the iserver into the system services

sudo update-rc.d iserver defaults

Supermap iServer Ubuntu Boot script

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.