/etc/init/bitcored.conf

(Cc Mehdi) #1

Hello Everyone,

Does anyone have a clear documentation on how to setup the upstart? I keep getting an error that bitcored can’t not be found.

This is what the script looks like:

description "Bitcore Daemon"
author “BitPay, Inc.”

limit nofile 20000 30000

start on runlevel [2345]
stop on runlevel [016]

kill timeout 300
kill signal SIGINT

setuid bitcore

env HOME=/home/user/my_Node

respawn
respawn limit 5 15

script
exec bitcored
end script

When I run the code:

/var/log/upstart$ sudo service bitcore start
bitcore start/running, process 10111

In my log file:

/var/log/upstart$ sudo cat bitcore.log
/bin/sh: 1: exec: bitcored: not found
/bin/sh: 1: exec: bitcored: not found
/bin/sh: 1: exec: bitcored: not found
/bin/sh: 1: exec: bitcored: not found
/bin/sh: 1: exec: bitcored: not found
/bin/sh: 1: exec: bitcored: not found

Your help is greatly appreciated

0 Likes

(Chris Rico) #2

You have to set the full path to the bitcore executable, or make sure that the executable’s directory is in your $PATH.

0 Likes

(Cc Mehdi) #3

Hi Chris,

I got it to work thx. But now I have another issue: it is not loading my wallet-api. Followed the guideline here: https://bitcore.io/guides/wallet-service and my home is pointing to the directory where I installed my wallet. Any ideas?

Regards

0 Likes

(Cc Mehdi) #4

Forget it… Got it figured too.

Thx

0 Likes