Start bitcore as a service


(Roie Bachar) #1

Please help,
I have installed the full node successfully, but I am unbale to start it as a demon,
It is installed on GCP Compute Engine(Ubuntu 16.04),
I followed the following link:
https://bitcore.io/guides/upstart-daemon/
and I took the startup script from:
https://github.com/bitpay/bitcore/issues/1460

my user name: roie

I have set bitcore.conf in /etc/init/ folder , but the service does not even presented in the services , and the file just seems to sit there.

description "Bitcore Daemon"
author “Roie”

limit nofile 20000 30000

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

kill timeout 300
kill signal SIGINT

setuid bitcore

env HOME=/home/roie/.bitcore

respawn
respawn limit 5 15

script
exec /home/roie/.nvm/versions/node/v4.9.1/bin/bitcored
end script

can someone point me in the right direction?


(MICHAEL D BERGSMA) #2

Run it manually in a tmux session.

sudo apt install tmux
tmux
bitcore start

…later

tmux attach #0