简体   繁体   中英

How to start a blockchain wallet service automatically?

Writting

sudo blockchain-wallet-service start --port 3000

on the command line will start the local service, but I ca not find out how to run it forever. Can anyone tell me how to do that?

That's what I am searching for but I can't find anything. Currently, I am starting the service using exec() every time I make an API call as follow. I know it's not recommended though.

  <?php
  // start blockchain services
  exec("/usr/bin/sudo /usr/bin/service blockchain-wallet-service start --port 3000");
  ?>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM