STEEM Daemon on Ubuntu 16

in steemit •  9 years ago  (edited)

STEEM Daemon on Ubuntu 16

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.

Install steemd system-wide

After you've compiled steem with make and have tested the steemd executable:

sudo make install

The steem programs (steemd, cli_wallet, etc.) and libraries will then be installed to /usr/local by default.

Configure the Unit file

Place the following systemd Unit file at /etc/systemd/system/steemd.service:

[Unit]
Description=STEEM daemon
After=network.target

[Service]
User=steemd
WorkingDirectory=/usr/local/var/lib/steemd
ExecStart=/usr/local/bin/steemd --rpc-endpoint
Restart=always

[Install]
WantedBy=multi-user.target

Make sure to chown and chmod it to root:

chown root:root /etc/systemd/system/steemd.service
chmod 644 /etc/systemd/system/steemd.service

Reload systemd

Force systemd to read new Unit configs using:

sudo systemctl daemon-reload

Managing the steemd service

You should be able to start, stop, and check statuses as normal:

sudo service steemd start
sudo service steemd status
sudo service steemd stop

SteemD logging

To see the full log for steemd.service:

sudo journalctl -u steemd.service

To watch the steemd.service log in real time:

sudo journalctl -u steemd.service -f

Enable startup-on-boot

To start configure systemd to start steemd at boot:

sudo systemctl enable steemd.service

I hope this helps! 

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

I have tried it and works flawlessly in Ubuntu 16 following your guide, thank you very much

Great to hear!

  ·  9 years ago (edited)Reveal Comment

irrelevant

Why do people keep reposting this nonsense?