<p><code>bitcoind</code> has a <code>-daemon</code> command line option that will cause it to run in the background.  That is likely to work better than using <code>nohup</code>.</p>

<p>There should be a <code>debug.log</code> file in your bitcoin data directory where any errors will be logged.</p>

CC BY-SA 3.0
2016-07-22T12:50:16.767Z
2016-07-22T12:50:16.767Z
Nate Eldredge
<p>I have installed bitcoind on a new computer, and I use <code>nohup</code> to run it:</p>

<pre><code>$ nohup bitcoind &amp;
</code></pre>

<p>However, every now and then I see that the process does not exist, and I have to restart it using <code>nohup</code>.</p>

<p>Any idea what went wrong? Are there any logs I can check, and is there a better way to run <code>bitcoind</code> in the background than <code>nohup</code>?</p>

<bitcoind><error>
Errors running bitcoind in the background
Adam Matan
# Errors running bitcoind in the background

(Asked by: username_0 on 2016-07-22)

I have installed bitcoind on a new computer, and I use `nohup` to run it:

```
$ nohup bitcoind &

```

However, every now and then I see that the process does not exist, and I have to restart it using `nohup`.

Any idea what went wrong? Are there any logs I can check, and is there a better way to run `bitcoind` in the background than `nohup`?

**Tags:** bitcoind, error


---

## 1 answers

### Answer by username_1 on 2016-07-22. Score: 5 | Accepted answer

`bitcoind` has a `-daemon` command line option that will cause it to run in the background. That is likely to work better than using `nohup`.

There should be a `debug.log` file in your bitcoin data directory where any errors will be logged.


---

