πRun a persistent baking node (DEPRECATED)
Want to make your baking infrastructure more resilient to electricity and internet cut-offs? Let's use Linux service files to keep those Tezos binaries running.
PLEASE REFER TO: https://opentezos.com/baking/persistent-baker
Running Tezos binaries as services
Creation of the Octez Tezos node service
# The Tezos Node service (part of systemd)
# file: /etc/systemd/system/tezos-node.service
[Unit]
Description = Tezos Node Service
Documentation = http://tezos.gitlab.io/
Wants = network-online.target
After = network-online.target
[Service]
User = <user>
Group = <user>
WorkingDirectory= /home/<user>/tezos/
ExecStart = /home/<user>/tezos/tezos-node run --rpc-addr 127.0.0.1:8732 --data-dir ~/.tezos-node
Restart = on-failure
[Install]
WantedBy = multi-user.target
RequiredBy = tezos-baker.service tezos-accuser.serviceCreation of the baker service
Creation of the accuser service
Enable and start service files
Useful commands
Monitor your services
Stop your services
Displaying service logs
Follow live the logs of the node/baker/accuser services
Export node logs since yesterday
Export baker logs since 8 am today
Export node logs since a week ago until one hour ago
Export baker logs between two specific timestamps
Export interleaved node/baker/accuser logs around a specific window
Running a remote signer as a service
Setup a remote signer using a .service file
Last updated
Was this helpful?