> For the complete documentation index, see [llms.txt](https://service.block-pro.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://service.block-pro.net/testnet/celestia/useful-commands/service-operations.md). Agents can also search and read this documentation through its [MCP server](https://service.block-pro.net/~gitbook/mcp).

# Service Operations

**Mocha Testnet · `mocha-5`**

The complete reference is now on [Useful Commands](https://service.block-pro.net/testnet/celestia/useful-commands.md#service-operations).

## Service operations

### Select service

Select the existing BlockPro bridge below. On the public Mocha consensus server, use `SERVICE=celestia-mocha-5.service`. On the validator, use `SERVICE=celestia-appd.service`; a light node from the generic guide uses `SERVICE=celestia-light.service`.

```bash
SERVICE=celestia-bridge-mocha.service
```

### Status

Check the selected systemd service.

```bash
sudo systemctl status "$SERVICE" --no-pager
```

### Start

Start the node.

```bash
sudo systemctl start "$SERVICE"
```

### Stop

Stop the node.

```bash
sudo systemctl stop "$SERVICE"
```

### Restart

Restart after a configuration change.

```bash
sudo systemctl restart "$SERVICE"
```

### Recent logs

Show the last 100 log lines.

```bash
sudo journalctl -u "$SERVICE" -n 100 --no-pager
```

### Follow logs

Follow logs; Ctrl+C leaves the log view.

```bash
sudo journalctl -u "$SERVICE" -f
```

### Bridge version

Show the version used by the active Mocha bridge process. The upgrade target is `0.36.0-mocha`.

```bash
systemctl is-active --quiet celestia-bridge-mocha.service &&
sudo "/proc/$(systemctl show celestia-bridge-mocha.service -p MainPID --value)/exe" version
```

### Bridge disk space

Check free space on the existing bridge store filesystem.

```bash
df -h /root/.celestia-bridge-mocha-5
```

### Bridge synchronization

Read the bridge log and confirm new head heights and sampling continue.

```bash
journalctl -u celestia-bridge-mocha.service -n 100 --no-pager -o cat
```

### Running consensus and Fibre versions

Run on the corresponding host. These commands check the executables of the active services, even when another binary is present in your shell's PATH. The Mocha target for both is `11.0.0-mocha`.

```bash
sudo "/proc/$(systemctl show celestia-appd.service -p MainPID --value)/exe" version
```

Run this only if the host has Fibre:

```bash
sudo "/proc/$(systemctl show fibre.service -p MainPID --value)/exe" version
```

If `MainPID=0` or a unit is not found, inspect the service before running the version command:

```bash
systemctl show celestia-appd.service fibre.service -p Id -p LoadState -p ActiveState -p ExecStart -p MainPID --no-pager -l
```

The existing BlockPro Mocha validator uses `/root/go/bin/celestia-appd` and `/root/go/bin/fibre`. Use [Upgrade](https://service.block-pro.net/testnet/celestia/validator-node/upgrade.md) to replace those exact files.

### Public consensus version

The existing public Mocha RPC node uses `/opt/celestia-mocha-5/bin/celestia-appd`. Check its running process; the target is `11.0.0-mocha`.

```bash
systemctl is-active --quiet celestia-mocha-5.service &&
sudo "/proc/$(systemctl show celestia-mocha-5.service -p MainPID --value)/exe" version
```

Inspect its service and binary path.

```bash
systemctl show celestia-mocha-5.service -p ActiveState -p SubState -p ExecStart -p MainPID --no-pager -l
```

Follow the [public consensus upgrade](https://service.block-pro.net/testnet/celestia/consensus-node/upgrade.md) for this deployment.

### Public consensus sync status

Run on the existing public Mocha consensus host. Its local RPC uses port `61157`. Check the network, height and catching\_up.

```bash
curl -fsS --max-time 5 http://127.0.0.1:61157/status | jq '.result | {chain: .node_info.network, sync: .sync_info}'
```

### Public consensus peer count

Count consensus peers.

```bash
curl -fsS --max-time 5 http://127.0.0.1:61157/net_info | jq -r '.result.n_peers'
```

### Public consensus disk space

Check available space.

```bash
df -h /root/.celestia-app-mocha-5
```

### Public consensus data size

Measure consensus data usage.

```bash
du -sh /root/.celestia-app-mocha-5/data
```
