mirror of
https://github.com/getrebuild/rebuild.git
synced 2025-02-22 13:23:04 +08:00
14 lines
274 B
Bash
14 lines
274 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
RBHOME=/path/to/v-rebuild-standalone
|
||
|
cd $RBHOME
|
||
|
|
||
|
PID=$(ps -ef | grep $RBHOME | grep -v grep | awk '{ print $2 }')
|
||
|
if [ -z "$PID" ]
|
||
|
then
|
||
|
echo "Rebuild-Standalone is not running. Starting ..."
|
||
|
./start-rebuild.sh
|
||
|
else
|
||
|
echo "Rebuild-Standalone is running"
|
||
|
fi
|