Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions payjoin-mailroom/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ The rust-payjoin flake also provides `payjoin-mailroom` as a package.
nix run .#payjoin-mailroom -- --config payjoin-mailroom/config.toml
```

### systemd

```sh
# A minimal [payjoin-mailroom.example.service](payjoin-mailroom.example.service) unit file is provided for convenience. Edit paths and User= as your setup requires.
vim /etc/systemd/system/payjoin-mailroom.service
systemctl daemon-reload
systemctl enable --now payjoin-mailroom
```

## Telemetry

payjoin-mailroom supports **optional** OpenTelemetry-based telemetry (metrics).
Expand Down
15 changes: 15 additions & 0 deletions payjoin-mailroom/payjoin-mailroom.example.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[Unit]
Description=Payjoin Mailroom
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
User=root
WorkingDirectory=/root/rust-payjoin/payjoin-mailroom
ExecStart=/root/.cargo/bin/payjoin-mailroom --config /root/rust-payjoin/payjoin-mailroom/config.toml
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target
Loading