<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.bitcoin.it/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=RealBorg</id>
	<title>Bitcoin Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://en.bitcoin.it/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=RealBorg"/>
	<link rel="alternate" type="text/html" href="https://en.bitcoin.it/wiki/Special:Contributions/RealBorg"/>
	<updated>2026-05-06T15:16:10Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Monit&amp;diff=11409</id>
		<title>Monit</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Monit&amp;diff=11409"/>
		<updated>2011-06-23T16:05:09Z</updated>

		<summary type="html">&lt;p&gt;RealBorg: how to use bitcoind with monit&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Running an monitoring bitcoind with [http://mmonit.com/monit/ monit]&lt;br /&gt;
&lt;br /&gt;
I recommend adding a user account for bitcoin:&lt;br /&gt;
  adduser --disabled-login bitcoin&lt;br /&gt;
&lt;br /&gt;
Place the home directory (or at least the .bitcoin/wallet.dat) on an encrypted volume (e.g. [http://code.google.com/p/cryptsetup/ cryptsetup]).&lt;br /&gt;
It is also recommended to have a separate wallet for every day use containing only a small amount of coins.&lt;br /&gt;
&lt;br /&gt;
Optional: move your existing .bitcoin directory to the new user and change ownership&lt;br /&gt;
  sudo mv .bitcoin ~bitcoin;&lt;br /&gt;
  sudo chown -R bitcoin.bitcoin ~bitcoin/.bitcoin&lt;br /&gt;
&lt;br /&gt;
Configure bitcoind in ~bitcoin/bitcoin.conf, you also need to set at least rpcuser and rpcpassword:&lt;br /&gt;
  pid=/home/bitcoin/.bitcoin/pid&lt;br /&gt;
&lt;br /&gt;
Create a wrapper for bitcoind in ~bitcoin/bin/bitcoind&lt;br /&gt;
  export HOME=&amp;quot;/home/bitcoin&amp;quot;&lt;br /&gt;
  exec /path/to/the/real/bitcoind &amp;quot;$@&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Optional: You may want to run bitcoind with a lower priority than your interactive applications:&lt;br /&gt;
  export HOME=&amp;quot;/home/bitcoin&amp;quot;&lt;br /&gt;
  exec /usr/bin/nice /usr/bin/ionice -c 3 /path/to/the/real/bitcoind &amp;quot;$@&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Add the following lines to your monitrc (/etc/monitrc or /etc/monit/monitrc) and reload monit:&lt;br /&gt;
  check process bitcoind with pidfile /home/bitcoin/.bitcoin/pid&lt;br /&gt;
  start program = &amp;quot;/home/bitcoin/bin/bitcoind -daemon&amp;quot; as uid bitcoin and gid bitcoin&lt;br /&gt;
  stop program = &amp;quot;/home/bitcoin/bin/bitcoind stop&amp;quot; as uid bitcoin and gid bitcoin&lt;br /&gt;
  #if totalmem &amp;gt; 100 MB then restart&lt;br /&gt;
&lt;br /&gt;
If your bitcoind is leaking memory you may want to enable the totalmem check (adjust amount for your needs).&lt;/div&gt;</summary>
		<author><name>RealBorg</name></author>
	</entry>
</feed>