> For the complete documentation index, see [llms.txt](https://docs.zenprotocol.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zenprotocol.com/apps/headless/deploy/systemd.md).

# Systemd

## Install a node via NPM

{% content-ref url="/pages/-L9iwr2pZXahP-6FtOde" %}
[Full Node NPM Package](/apps/headless/headless.md)
{% endcontent-ref %}

## Install Service

Create a new file in `/etc/systemd/system/zen-node.service` with the following:

```
[Unit]
Description=Zen Node
After=network.target

[Service]
Type=simple
WorkingDirectory=/usr/lib/node_modules/@zen/zen-node/Release/
ExecStart=/usr/bin/mono /usr/lib/node_modules/@zen/zen-node/Release/zen-node.exe
Restart=on-failure

[Install]
WantedBy=multi-user.target

```

## Enable and Run Service:

1. Enable by writing on the terminal:\
   `systemctl enable zen-node.service`
2. Run the service by writing:\
   `systemctl start zen-node.service`

## View Service Logs

1. Run on the terminal:\
   `journalctl -f -u zen-node.service`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.zenprotocol.com/apps/headless/deploy/systemd.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
