jumpserver/entrypoint.sh

22 lines
303 B
Bash
Raw Normal View History

2018-11-13 07:57:44 +00:00
#!/bin/bash
function cleanup()
{
local pids=`jobs -p`
if [[ "${pids}" != "" ]]; then
kill ${pids} >/dev/null 2>/dev/null
2018-11-13 07:57:44 +00:00
fi
}
2019-01-19 11:29:38 +00:00
service="all"
if [[ "$1" != "" ]];then
2019-01-19 11:29:38 +00:00
service=$1
fi
trap cleanup EXIT
if [[ "$1" == "bash" ]];then
bash
else
python jms start ${service}
fi