mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-12-24 04:52:39 +00:00
17 lines
244 B
Bash
Executable File
17 lines
244 B
Bash
Executable File
#!/bin/bash
|
|
function cleanup()
|
|
{
|
|
local pids=`jobs -p`
|
|
if [[ "$pids" != "" ]]; then
|
|
kill $pids >/dev/null 2>/dev/null
|
|
fi
|
|
}
|
|
|
|
service="all"
|
|
if [ "$1" != "" ];then
|
|
service=$1
|
|
fi
|
|
|
|
trap cleanup EXIT
|
|
python jms start $service
|