Install script from binary added
This commit is contained in:
parent
b1ab3f5887
commit
a6763b8f48
12
ceremonyclient.service
Normal file
12
ceremonyclient.service
Normal file
@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Ceremony Client Go App Service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
RestartSec=5s
|
||||
WorkingDirectory=/root/ceremonyclient/node
|
||||
ExecStart=/root/ceremonyclient/node/node
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@ -1,5 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
# Step 0: Welcome
|
||||
echo "This script is prepared by 0xOzgur.eth"
|
||||
echo "Enjoy and sit back while you are building your Quilibrium Node!"
|
||||
echo "Processing..."
|
||||
sleep 10 # Add a 10-second delay
|
||||
|
||||
|
||||
# Download Ceremonyclient
|
||||
echo "Downloading Ceremonyclient"
|
||||
sleep 2 # Add a 2-second delay
|
||||
@ -21,7 +29,7 @@ chmod +x node
|
||||
|
||||
# Create Ceremonyclient Service
|
||||
echo "Creating Ceremonyclient Service"
|
||||
sleep 1 # Add a 1-second delay
|
||||
sleep 2 # Add a 2-second delay
|
||||
sudo tee /lib/systemd/system/ceremonyclient.service > /dev/null <<EOF
|
||||
[Unit]
|
||||
Description=Ceremony Client Go App Service
|
||||
@ -31,14 +39,19 @@ Type=simple
|
||||
Restart=always
|
||||
RestartSec=5s
|
||||
WorkingDirectory=/root/ceremonyclient/node
|
||||
Environment=GOEXPERIMENT=arenas
|
||||
ExecStart=/root/go/bin/node/node ./...
|
||||
ExecStart=/root/ceremonyclient/node/node
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
|
||||
# Run the node
|
||||
echo "Running the node"
|
||||
sleep 2 # Add a 2-second delay
|
||||
./node
|
||||
# Start the ceremonyclient service
|
||||
echo "Starting Ceremonyclient Service"
|
||||
sleep 1 # Add a 1-second delay
|
||||
systemctl enable ceremonyclient
|
||||
service ceremonyclient start
|
||||
|
||||
# See the logs of the ceremonyclient service
|
||||
echo "CTRL + C to exit the logs."
|
||||
sleep 5 # Add a 5-second delay
|
||||
sudo journalctl -u ceremonyclient.service -f --no-hostname -o cat
|
||||
@ -4,7 +4,7 @@
|
||||
echo "This script is prepared by 0xOzgur.eth"
|
||||
echo "Enjoy and sit back while you are building your Quilibrium Node!"
|
||||
echo "Processing..."
|
||||
sleep 10 # Add a 5-second delay
|
||||
sleep 10 # Add a 10-second delay
|
||||
|
||||
|
||||
# Installing Go 1.20.14
|
||||
|
||||
Loading…
Reference in New Issue
Block a user