STEEM Daemon on Ubuntu 16

View this thread on: d.buzz | hive.blog | peakd.com | ecency.com
·@kilrathi·
0.000 HBD
STEEM Daemon on Ubuntu 16
<html>
<h1>STEEM Daemon on Ubuntu 16</h1>
<p><em>Ubuntu 15 switched from Upstart to systemd as the default system service manager, so previous tutorials covering the former are now obsolete. The following steps will configure steemd to start at boot as a system service.</em></p>
<h2>Install steemd system-wide</h2>
<p>After you've compiled steem with <strong>make</strong> and have tested the steemd executable:</p>
<blockquote>sudo make install</blockquote>
<p>The steem programs (steemd, cli_wallet, etc.) and libraries will then be installed to /usr/local by default.</p>
<h2>Configure the Unit file</h2>
<p>Place the following systemd Unit file at <strong>/etc/systemd/system/steemd.service</strong>:</p>
<blockquote>[Unit]<br>
Description=STEEM daemon<br>
After=network.target<br>
<br>
[Service]<br>
User=steemd<br>
WorkingDirectory=/usr/local/var/lib/steemd<br>
ExecStart=/usr/local/bin/steemd --rpc-endpoint<br>
Restart=always<br>
<br>
[Install]<br>
WantedBy=multi-user.target</blockquote>
<p>Make sure to chown and chmod it to root:</p>
<blockquote>chown root:root /etc/systemd/system/steemd.service<br>
chmod 644 /etc/systemd/system/steemd.service</blockquote>
<h2>Reload systemd</h2>
<p>Force systemd to read new Unit configs using:</p>
<blockquote>sudo systemctl daemon-reload</blockquote>
<h2>Managing the steemd service</h2>
<p>You should be able to start, stop, and check statuses as normal:</p>
<blockquote>sudo service steemd start<br>
sudo service steemd status<br>
sudo service steemd stop</blockquote>
<h2>SteemD logging</h2>
<p>To see the full log for steemd.service:</p>
<blockquote>sudo journalctl -u steemd.service</blockquote>
<p>To watch the steemd.service log in real time:</p>
<blockquote>sudo journalctl -u steemd.service -f</blockquote>
<h2>Enable startup-on-boot</h2>
<p>To start configure systemd to start steemd at boot:</p>
<blockquote>sudo systemctl enable steemd.service</blockquote>
<p>I hope this helps!&nbsp;<br>
<br>
<img src="https://assets.ubuntu.com/v1/3361409d-apple-touch-icon-144x144-precomposed.png" width="144" height="144"/></p>
</html>
👍 , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,