mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 00:17:25 +08:00
0a92e96f20
* [Feature] add golang router * [Feature] add golang router * [Feature] add golang router * [Feature] add golang router * [Feature] add golang router * [Feature] Add Golang-based Router for Request Scheduling and Load Balancing * [Feature] Add Golang-based Router for Request Scheduling and Load Balancing * [Feature] Add Golang-based Router for Request Scheduling and Load Balancing * [Feature] Add Golang-based Router for Request Scheduling and Load Balancing --------- Co-authored-by: mouxin <mouxin@baidu.com>
12 lines
340 B
Bash
Executable File
12 lines
340 B
Bash
Executable File
#!/bin/bash
|
|
|
|
PID=$(ps -ef | grep "fd-router" | grep -v grep | awk '{print $2}')
|
|
if [ -n "$PID" ]; then
|
|
echo "Killing existing fd-router process (PID: $PID)"
|
|
kill -15 $PID
|
|
fi
|
|
|
|
echo "Starting new fd-router process..."
|
|
nohup /usr/local/bin/fd-router --port 8080 --splitwise > fd-router.log 2>&1 &
|
|
echo "fd-router started with PID: $!"
|