jumpserver/entrypoint.sh

17 lines
244 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
fi
}
2019-01-19 11:29:38 +00:00
service="all"
if [ "$1" != "" ];then
service=$1
fi
2018-11-13 07:57:44 +00:00
trap cleanup EXIT
2019-01-19 11:29:38 +00:00
python jms start $service