[0620e3]: / startup.sh  Maximize  Restore  History

Download this file

22 lines (16 with data), 715 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

service codesysedge start

# start tunnel to license server or start codemeter
if [ ! -z ${LICENSE_SERVER} ]; then
	echo "[codemeter] connecting to network server ${LICENSE_SERVER}."
	echo "[codemeter] you need to forward port 22350 on the server *locally* to 22357."
	echo "e.g.: socat tcp-listen:22357,fork,reuseaddr tcp:localhost:22350&"
	socat tcp-listen:22350,fork,reuseaddr,bind=127.0.0.1 tcp:${LICENSE_SERVER}:22357&

	# one potential other possible solutions to use a network server
    #/etc/init.d/codemeter start
    #cmu --add-server ${LICENSE_SERVER}
else
	service codemeter start
fi


export LD_LIBRARY_PATH=/opt/codesys/lib
/opt/codesys/bin/codesyscontrol.bin -d /etc/CODESYSControl.cfg