Skip to content

Modification for pm2 startup to ensure komodod is up #7

@49handyman

Description

@49handyman

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions