mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-12-24 23:55:18 +00:00
restore non-datacenter version for folks running on machines under their own control
This commit is contained in:
parent
a1ad197ebe
commit
721e3d9f57
@ -1,22 +1,16 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "Warning: this script should not be run in a third party datacenter. You will likely be kicked off for excessive temperature or power consumption."
|
||||||
|
|
||||||
start_process() {
|
start_process() {
|
||||||
version=$(cat config/version.go | grep -A 1 "func GetVersion() \[\]byte {" | grep -Eo '0x[0-9a-fA-F]+' | xargs printf "%d.%d.%d")
|
version=$(cat config/version.go | grep -A 1 "func GetVersion() \[\]byte {" | grep -Eo '0x[0-9a-fA-F]+' | xargs printf "%d.%d.%d")
|
||||||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
||||||
if ! which cpulimit; then
|
|
||||||
echo "cpulimit not installed, please install it before running the node"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
if [[ $(uname -m) == "aarch64"* ]]; then
|
if [[ $(uname -m) == "aarch64"* ]]; then
|
||||||
./node-$version-linux-arm64 &
|
./node-$version-linux-arm64 &
|
||||||
main_process_id=$!
|
main_process_id=$!
|
||||||
sleep 20
|
|
||||||
ps -eo pid,args | grep "node-$version-linux-arm64 --core" | grep -v grep | gawk '{print $1}' | xargs -L 1 cpulimit -l 50 -z -b -p
|
|
||||||
else
|
else
|
||||||
./node-$version-linux-amd64 &
|
./node-$version-linux-amd64 &
|
||||||
main_process_id=$!
|
main_process_id=$!
|
||||||
sleep 20
|
|
||||||
ps -eo pid,args | grep "node-$version-linux-amd64 --core" | grep -v grep | gawk '{print $1}' | xargs -L 1 cpulimit -l 50 -z -b -p
|
|
||||||
fi
|
fi
|
||||||
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
./node-$version-darwin-arm64 &
|
./node-$version-darwin-arm64 &
|
||||||
|
Loading…
Reference in New Issue
Block a user