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 5079941
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions examples/systemd/sv2-translator.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[Unit]
Description=Stratum v2 Translator
After=sv2-translator.service

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

[Install]
WantedBy=multi-user.target

0 comments on commit 5079941

Please sign in to comment.