I successfully installed bitcore and able to run with the bitcore-node start. But I want to run it as service in the background.
Installation Step of Bitcore-node.
curl -sL https://deb.nodesource.com/setup_4.x | sudo bash -
sudo apt-get install nodejs
sudo apt-get install python
sudo apt-get install libzmq3-dev build-essential
npm install -g bitcore-node (https://github.com/bitpay/bitcore-node)
On Running bitcore-node start
its working perfectly
I created a service in the
/etc/systemd/system
[Unit]
Description=bitcored.service
After=network.target
[Service]
Type=simple
User=ubuntu
Environment="PATH=$PATH:/home/ubuntu/usr/bin"
ExecStart=/root/bin/node /usr/lib/node_modules/bitcore-node/bin/bitcore-node
ExecReload=/bin/kill -2 $MAINPID
KillMode=process
Restart=on-failure
[Install]
WantedBy=multi-user.target
On Executing the command
sudo service bitcore status
, I am getting following Error.
Any help would be appreciated.
via Sachin Singh
No comments:
Post a Comment