Skip to content

Commit

Permalink
update the script
Browse files Browse the repository at this point in the history
  • Loading branch information
thr2240 committed Oct 11, 2023
1 parent d4a9510 commit ed55776
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion running_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,5 +146,26 @@ if [[ $overwrite == "y" || $overwrite == "Y" ]]; then
fi
fi

sudo tee /etc/systemd/system/ollo.service > /dev/null <<EOF
[Unit]
Description=OLLO Daemon
After=network-online.target
[Service]
User=$USER
ExecStart=$(which ollod) start
Restart=always
RestartSec=3
LimitNOFILE=8192
[Install]
WantedBy=multi-user.target
EOF

sudo systemctl daemon-reload
sudo systemctl enable ollo

# Start the service
# sudo systemctl start ollo > /var/log/ollo-log.log 2>&1

sudo systemctl start ollo
# Start the node (remove the --pruning=nothing flag if historical queries are not needed)
ollod start --pruning=nothing "$TRACE" --rpc.laddr tcp://0.0.0.0:26657 --log_level $LOGLEVEL --home "$HOMEDIR"
# ollod start --pruning=nothing "$TRACE" --rpc.laddr tcp://0.0.0.0:26657 --log_level $LOGLEVEL --home "$HOMEDIR"

0 comments on commit ed55776

Please sign in to comment.