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