Installing binary and start script
This commit is contained in:
parent
e5209f1f34
commit
62719c0b15
42
install_binary.sh
Normal file
42
install_binary.sh
Normal file
@ -0,0 +1,42 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Download Ceremonyclient
|
||||
echo "Downloading Ceremonyclient"
|
||||
sleep 2 # Add a 2-second delay
|
||||
git clone https://github.com/QuilibriumNetwork/ceremonyclient.git
|
||||
|
||||
cd ~/ceremonyclient/node
|
||||
|
||||
# Download Binary
|
||||
echo "Downloading Binary"
|
||||
sleep 2 # Add a 2-second delay
|
||||
wget https://github.com/QuilibriumNetwork/ceremonyclient/releases/download/v1.4.17/node-1.4.17-linux-amd64.bin
|
||||
|
||||
# Make the file executable
|
||||
echo "Making the Binary executable"
|
||||
sleep 2 # Add a 2-second delay
|
||||
chmod +x node-1.4.17-linux-amd64.bin
|
||||
|
||||
# Create Ceremonyclient Service
|
||||
echo "Creating Ceremonyclient Service"
|
||||
sleep 1 # Add a 1-second delay
|
||||
sudo tee /lib/systemd/system/ceremonyclient.service > /dev/null <<EOF
|
||||
[Unit]
|
||||
Description=Ceremony Client Go App Service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
RestartSec=5s
|
||||
WorkingDirectory=/root/ceremonyclient/node
|
||||
Environment=GOEXPERIMENT=arenas
|
||||
ExecStart=/root/go/bin/node ./...
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
|
||||
# Run the node
|
||||
echo "Running the node"
|
||||
sleep 2 # Add a 2-second delay
|
||||
./node-1.4.17-linux-amd64.bin
|
||||
Loading…
Reference in New Issue
Block a user