Skip to content

Commit

Permalink
Need .service extension
Browse files Browse the repository at this point in the history
  • Loading branch information
timothymcmackin committed Jan 16, 2025
1 parent 58852bd commit 6d1c564
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 7 deletions.
23 changes: 18 additions & 5 deletions docs/tutorials/join-dal-baker/run-baker.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Step 4: Run an Octez baking daemon"
authors: Tezos core developers, Tim McMackin
last_update:
date: 13 January 2025
date: 15 January 2025
---

Now that you have a layer 1 node and a DAL node, you can run a baking daemon that can create blocks and attests to DAL data.
Expand Down Expand Up @@ -35,9 +35,9 @@ You can also refer to [Run a persistent baking node](https://opentezos.com/node-

For example, if your operating system uses the `systemd` software suite, your service file might look like this example:

```systemd
```systemd title="/etc/systemd/system/octez-baker-PsQuebec.service"
[Unit]
Description=Octez baker
Description=Octez baker PsQuebec
Wants=network-online.target
After=network-online.target
Requires=octez-node.service
Expand All @@ -57,6 +57,19 @@ You can also refer to [Run a persistent baking node](https://opentezos.com/node-
SyslogIdentifier=%n
```

If you name this service file `/etc/systemd/system/octez-baker-PsQuebec`, you can start it by running these commands:

```bash
sudo systemctl daemon-reload
sudo systemctl start octez-baker-PsQuebec.service
```

You can stop it by running this command:

```bash
sudo systemctl stop octez-baker-PsQuebec.service
```

1. In the same terminal window, run this command:

```bash
Expand Down Expand Up @@ -152,9 +165,9 @@ You don't have to run an accuser, but if you do, you can receive as a reward par
Like the baker, the command for the accuser has the protocol name at the end.
For example, if your operating system uses the `systemd` software suite, the attester service file might look like this example:

```systemd
```systemd title="/etc/systemd/system/octez-accuser-PsQuebec.service"
[Unit]
Description=Octez accuser
Description=Octez accuser PsQuebec
Wants=network-online.target
After=network-online.target
Requires=octez-node.service
Expand Down
17 changes: 15 additions & 2 deletions docs/tutorials/join-dal-baker/run-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Step 1: Run an Octez node"
authors: Tezos core developers, Tim McMackin
last_update:
date: 9 January 2025
date: 15 January 2025
---

The first thing you need is a Tezos layer 1 node, which is an instance of the `octez-node` program and part of the Octez suite of programs.
Expand Down Expand Up @@ -108,7 +108,7 @@ You can also refer to [Run a persistent baking node](https://opentezos.com/node-

For example, if your operating system uses the `systemd` software suite, your service file might look like this example:

```systemd
```systemd title="/etc/systemd/system/octez-node.service"
[Unit]
Description=Octez node
Wants=network-online.target
Expand All @@ -129,6 +129,19 @@ You can also refer to [Run a persistent baking node](https://opentezos.com/node-
SyslogIdentifier=%n
```

If you name this service file `/etc/systemd/system/octez-node`, you can start it by running these commands:

```bash
sudo systemctl daemon-reload
sudo systemctl start octez-node.service
```

You can stop it by running this command:

```bash
sudo systemctl stop octez-node.service
```

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.
Expand Down

0 comments on commit 6d1c564

Please sign in to comment.