Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modification for pm2 startup to ensure komodod is up #7

Open
49handyman opened this issue Nov 16, 2021 · 0 comments
Open

Modification for pm2 startup to ensure komodod is up #7

49handyman opened this issue Nov 16, 2021 · 0 comments

Comments

@49handyman
Copy link
Owner

49handyman commented Nov 16, 2021

if you use pm2 to monitor and run the pool server add these lines to your pm2 system startup file in /etc/systemd/system

ExecStartPre=/usr/bin/timeout 360 sh -c 'while ! komodo-cli -rpcport=7771 getinfo | jq -r '.synced' | grep -q true; do sleep 3; done'

ExecStartPost=/usr/bin/timeout 360 sh -c 'while ! komodo-cli -rpcport=7771 getinfo | jq -r '.synced' | grep -q true; do sleep 3; done'

this checks to make sure komodo daemon is synced before starting pool server. On reboot i have problems starting pool server when the node wallet isnt up and synced. this solves that problem.

it does requre "jq" just sudo apt install jq to install it.

Modify the -rpcport=7771 to your rpc komodo port.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant