Commit a2a302f2 authored by nanahira's avatar nanahira

fix

parent e242c23a
...@@ -11,14 +11,12 @@ run_stop() { ...@@ -11,14 +11,12 @@ run_stop() {
kill "-$signalCode" "$pid" kill "-$signalCode" "$pid"
wait "$pid" wait "$pid"
fi fi
echo "Stopped"
exit $((128 + signalCode)); exit $((128 + signalCode));
} }
trap 'kill ${!}; run_stop 2' SIGTERM trap 'kill ${!}; run_stop 2' SIGTERM
trap 'kill ${!}; run_stop 15' SIGINT trap 'kill ${!}; run_stop 15' SIGINT
echo "Started"
"$@" & "$@" &
pid="$!" pid="$!"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment