Initial OC setup

This commit is contained in:
Deon George
2018-03-11 11:48:17 +11:00
parent 12239ff76e
commit c09e682e72
3 changed files with 158 additions and 0 deletions

21
init Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
set -e
NAME="SP"
function stop {
echo "Stopping ${NAME}"
/opt/tivoli/tsm/ui/Liberty/bin/opscenter.rc stop
}
trap 'stop' SIGTERM
if [ "$1" == "start" ]; then
/opt/tivoli/tsm/ui/Liberty/bin/opscenter.rc start
( while ps -p $(cat /opt/tivoli/tsm/ui/Liberty/usr/servers/.pid/guiServer.pid) >/dev/null; do sleep 600; done ) &
wait
else
exec $@
fi