This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
spdocker/init
2018-03-11 11:48:17 +11:00

22 lines
366 B
Bash
Executable File

#!/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