Added systemd.service for seednode operation

This commit is contained in:
Florian Reimair 2019-03-04 14:10:07 +01:00
parent 03db522a11
commit 06d21865b6
No known key found for this signature in database
GPG key ID: 05634D8D7A7954C8
2 changed files with 33 additions and 0 deletions

19
seednode/README.md Normal file
View file

@ -0,0 +1,19 @@
# Bisq Seed Node
The distribution ships with a systemd .desktop file. Validate/change the executable/config paths within the shipped `bisq-seednode.service` file and copy/move the file to your systemd directory (something along `/usr/lib/systemd/system/`). Now you can control your *Seed Node* via the usual systemd start/stop commands
```
systemctl start bisq-seednode.service
systemctl stop bisq-seednode.service
```
and
```
systemctl enable bisq-seednode.service
systemctl disable bisq-seednode.service
```
Follow the logs created by the service by inspecting
```
journalctl --unit bisq-seednode --follow
```

View file

@ -0,0 +1,14 @@
[Unit]
Description=Bisq Seed Node
After=network.target
[Service]
Environment="JAVA_OPTS=-Xms800M -Xmx800M"
ExecStart=/home/bisq/bisq/bisq-seednode --appName=seed_BTC_MAINNET --nodePort=8000 --userDataDir=/home/bisq/ --maxConnections=50 --baseCurrencyNetwork=BTC_MAINNET
Restart=on-failure
User=bisq
Group=bisq
[Install]
WantedBy=multi-user.target