Skip to content

Instantly share code, notes, and snippets.

@nutrino
Created November 29, 2020 08:36
Show Gist options
  • Select an option

  • Save nutrino/714538d15c41919dad539d6c471892f7 to your computer and use it in GitHub Desktop.

Select an option

Save nutrino/714538d15c41919dad539d6c471892f7 to your computer and use it in GitHub Desktop.
if pgrep nexusd &> /dev/null; then
echo nexusd process already exists
else
nohup go/bin/nexusd -c go/etc/nexus.json 1>~/nexusd.log 2>&1 &
fi
@nutrino
Copy link
Author

nutrino commented Nov 29, 2020

start_node_api_nohup.sh

if [ `ps -ax | grep [a]pi.js` ] &> /dev/null; then
    echo node api.js process already exists
else
    nohup node api/dist/api.js 1>~/node_api.log 2>&1 &
fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment