Setting up ethdocstore as a service under systemd Fedora 27
- Create user
docstore-bureaucracy
withuseradd
- Download with wget latest version of ethdocstore (as tgz) into
/home/docstore-bureaucracy
and unpack. Symlinkethdocstore
to that version, in/home/docstore-bureaucracy
- Define an
ethdocstore-data
directory - Edit the
application.conf
file in the conf directory of the distribution (perhaps as a symlink elsewhere to prevent upgrades from overwriting, currently the true file is/home/docstore-bureaucracy/conf/application.conf
) - Install the
ethdocstore.service
file (also in this gist) in /usr/lib/systemd/system/ (make sure the version / path-to-bin are correct) - Make a symlink from
/etc/systemd/system/multi-user.target.wants/ethdocstore.service
to/usr/lib/systemd/system/ethdocstore.service
systemctl enable ethdocstore
followed bysystemctl start ethdocstore
- Verify that logging goes to the systemd journal with
journalctl --follow -u ethdocstore