3个业务模块: - pipeline_core: 产线定义(pipelines/steps/versions) - pipeline_ops: 运营(定价/供应量/使用记录) - pipeline_dist: 分销(分销商/独立定价/API密钥) - ahserver独立部署(端口9090) - 独立数据库pipeline - 80个文件, 符合module/db-table/crud三规范
17 lines
341 B
Bash
17 lines
341 B
Bash
#!/usr/bin/env bash
|
|
WORKDIR="$(cd "$(dirname "$0")" && pwd)"
|
|
cd "$WORKDIR"
|
|
|
|
if [ -f pipeline.pid ]; then
|
|
pid=$(cat pipeline.pid)
|
|
if kill -0 "$pid" 2>/dev/null; then
|
|
kill "$pid"
|
|
echo "Stopped PID $pid"
|
|
else
|
|
echo "Process $pid not running"
|
|
fi
|
|
rm -f pipeline.pid
|
|
else
|
|
echo "No pid file found"
|
|
fi
|