How to Run Spectrum Technology Platform as a Linux Service
These instructions describe how to run the Spectrum Technology Platform as a Linuxservice.
-
Modify the provided pbspectrum script which is located here: Spectrum Script.
- Copy the modified pbspectrum script to either /etc/rc.d/init.d for RedHat Linux or /etc/init.d for Suse Linux.
-
Change the mode of the pbspectrum script to executable. /etc/rc.d/init.d for RedHat Linux or /etc/init.d for Suse Linux.
cd /etc/init.d
orcd /etc/rc.d/init.d
depending on your Linux version.run
chmod +x pbspectrum
-
Run
chkconfig --add pbspectrum
-
Verify the script is working by restarting the machine. Use
shutdown -r now
to reboot from shell.
Once completed, you may also use the following:
service pbspectrum start
to start Spatial Serverservice pbspectrum stop
to stop Spatial Serverservice pbspectrum restart
to restart Spatial Server
Note: The provided script runs the command 'ulimit -n 8192' which is required to increase the number of open files in Linux.