Skip to content

Commit

Permalink
Add systemd example for Translator
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjors committed Feb 20, 2023
1 parent 03e19d8 commit 4a26164
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions examples/systemd/sv2-translator.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[Unit]
Description=Stratum v2 Translator
After=sv2-translator.service

[Service]
# Assumes a user stratum with Rust installed and the repository cloned into ~/src
# cargo build -p translator --release
WorkingDirectory=/home/stratum/src/stratum/roles/translator
ExecStart=/home/stratum/src/stratum/target/release/translator
User=stratum
Group=stratum
Type=simple
KillMode=process
TimeoutSec=60
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target

0 comments on commit 4a26164

Please sign in to comment.