Skip to content

Running in the Background

Alexey Zilber edited this page Jul 8, 2019 · 1 revision

Background (daemonizing) Noodle

If you want to run Noodle in with background reporting, add the -D command line argument.

Here's a simple example using "nohup":

This will disable the nohup logfile, and detach from the local tty: nohup ./noodle -D >/dev/null 2>&1 </dev/null &

Noodle will turn on json logging, and attempt to log to syslog. The logs will be on your system and look something like (from the OSX Console log):

On Linux, /var/log/messages will contain:

Jun 28 23:35:16 btdx2 ./noodle[20227]: {"level":"info","msg":"Node Noodle (c) 2019 ConsulTent Ltd. (http://consultent.ltd) v0.0.1-81733e6-dirty","time":"2019-06-28T23:35:16+08:00"} Jun 28 23:35:16 btdx2 ./noodle[20227]: {"level":"info","msg":"Donations accepted [ZCoin]: aGoK6MF87K2SgT7cnJFhSWt7u2cAS5m18p\n\n","time":"2019-06-28T23:35:16+08:00"} Jun 28 23:35:16 btdx2 ./noodle[20227]: {"level":"info","msg":"ZCoin Detected","time":"2019-06-28T23:35:16+08:00"}

You can change the first /dev/null above to a log file if you wish to keep a log of alerts that you will have to manage on your own. Be sure NOT to save any log files in your zcoin binary directory.

Clone this wiki locally