Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: Brad BrezinskiCan I use execute system command nodes like this to initiate the shutdown and restart script also referenced below?
node:Restart_Server_2
bretype:AppStatus_AppRestart::Execute System Command
editor:Label=Restart Server
editor:sortkey=566b1b2a363f12b9
output:@4bbb5f76369e1fb0/=
prop:Command={{%ls.brain.home%}}/bin/shutDownServer_restart
editor:XY=90,190
editor:Notes=This runs the script:
editor:Notes=<installation directory>/bin/LavastormJettyServerRestart
editor:Notes=The sever specific pathes are:
editor:Notes=/opt/app/t1lae1c1/Lavastorm/LAE5.1/bin/LavastormJettyServerRestart
editor:Notes=/opt/app/p1lae1c1/Lavastorm/LAE5.1/bin/LavastormJettyServerRestart
editor:Notes=The {{%ls.brain.home%}} command runs the script regardless of the sever that is currently logged in.
end:Restart_Server_2
++++++++++++++
$cat shutDownServer_restart
import time
. "/opt/app/t1lae1c1/Lavastorm/LAE6.1.4/.profile.lavastorm"
. "/opt/app/t1lae1c1/Lavastorm/LAE6.1.4/bin/stopLavastormJettyServer"
. "/opt/app/t1lae1c1/Lavastorm/LAE6.1.4/bin/stopDatabase"
. "/opt/app/t1lae1c1/Lavastorm/LAE6.1.4/bin/shutDownServer.sh"
time.sleep(60)
. "/opt/app/t1lae1c1/Lavastorm/LAE6.1.4/bin/startServer_6.1.4"
$ cat startServer_6.1.4
. ../.profile.lavastorm
./startDatabase &
./startLavastormJettyServer &
./laeServer > ../log/laeServer.log 2>&1 &