diff --git a/docs/tutorials/join-dal-baker/run-baker.md b/docs/tutorials/join-dal-baker/run-baker.md index 3bdbdd305..037d5b332 100644 --- a/docs/tutorials/join-dal-baker/run-baker.md +++ b/docs/tutorials/join-dal-baker/run-baker.md @@ -20,6 +20,30 @@ If you already have a baking daemon, you can restart it to connect to the DAL no Look up how to run programs persistently in the documentation for your operating system. You can also refer to [Run a persistent baking node](https://opentezos.com/node-baking/baking/persistent-baker/) on opentezos.com. + For example, if your operating system uses the `systemd` software suite, your service file might look like this example: + + ```systemd + [Unit] + Description=Octez baker + Wants = network-online.target + After = network-online.target + Requires = octez-node.service + + [Install] + WantedBy = multi-user.target + + [Service] + Type=simple + User=mybaker + ExecStart=octez-baker-PsParisC run with local node "$HOME/.tezos-node" my_baker --liquidity-baking-toggle-vote pass --adaptive-issuance-vote on --dal-node http://127.0.0.1:10732 + WorkingDirectory=/opt/octez-baker + Restart=on-failure + RestartSec=5 + StandardOutput=append:/opt/octez-baker.log + StandardError=append:/opt/octez-baker.log + SyslogIdentifier=%n + ``` + 1. In the same terminal window, run this command: ```bash diff --git a/docs/tutorials/join-dal-baker/run-dal-node.md b/docs/tutorials/join-dal-baker/run-dal-node.md index 7e74aab24..d0fbdd44f 100644 --- a/docs/tutorials/join-dal-baker/run-dal-node.md +++ b/docs/tutorials/join-dal-baker/run-dal-node.md @@ -118,18 +118,18 @@ You can also refer to [Setting up Octez Services](https://tezos.gitlab.io/introd Requires = octez-node.service [Install] - WantedBy=multi-user.target + WantedBy = multi-user.target RequiredBy = octez-baker.service [Service] Type=simple User=mybaker - ExecStart=/usr/bin/octez-dal-node run --data-dir /opt/dal - WorkingDirectory=/opt/dal + ExecStart=/usr/bin/octez-dal-node run --data-dir /opt/dal-node + WorkingDirectory=/opt/dal-node Restart=on-failure RestartSec=5 - StandardOutput=append:/opt/dal/octez-dal-node.log - StandardError=append:/opt/dal/octez-dal-node.log + StandardOutput=append:/opt/octez-dal-node.log + StandardError=append:/opt/octez-dal-node.log SyslogIdentifier=%n ``` diff --git a/docs/tutorials/join-dal-baker/run-node.md b/docs/tutorials/join-dal-baker/run-node.md index f11fa512f..b1209f048 100644 --- a/docs/tutorials/join-dal-baker/run-node.md +++ b/docs/tutorials/join-dal-baker/run-node.md @@ -102,6 +102,29 @@ For example, the command to download a Ghostnet snapshot from the European serve Look up how to run programs persistently in the documentation for your operating system. You can also refer to [Run a persistent baking node](https://opentezos.com/node-baking/baking/persistent-baker/) on opentezos.com or [Setting up Octez Services](https://tezos.gitlab.io/introduction/services.html) in the Octez documentation. + For example, if your operating system uses the `systemd` software suite, your service file might look like this example: + + ```systemd + [Unit] + Description=Octez node + Wants = network-online.target + After = network-online.target + + [Install] + WantedBy = multi-user.target + + [Service] + Type=simple + User=mybaker + ExecStart=octez-node run --rpc-addr 127.0.0.1:8732 --data-dir $HOME/.tezos-node + WorkingDirectory=/opt/octez-node + Restart=on-failure + RestartSec=5 + StandardOutput=append:/opt/octez-node.log + StandardError=append:/opt/octez-node.log + SyslogIdentifier=%n + ``` + 1. Optional: When the node has bootstrapped and caught up with the current head block, you can delete the snapshot file to save space. In the meantime, you can continue the baking infrastructure while the node is bootstrapping.