Created
October 24, 2017 19:34
-
-
Save ushkinaz/9c5d5bdf1e48b17719f14f6e0ab83540 to your computer and use it in GitHub Desktop.
Syncthing Relay Systemd Service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/etc/default/syncthing-relay | |
KEYS=/etc/relaysrv | |
GLOBAL_RATE=10485760 | |
PER_SESSION_RATE=212992 | |
PROVIDED_BY='https://keybase.io/ushkinaz' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Description=Syncthing Relay | |
After=network.target | |
[Service] | |
User=relaysrv | |
EnvironmentFile=-/etc/default/syncthing-relay | |
ExecStart=/usr/bin/strelaysrv -keys=${KEYS} -global-rate=${GLOBAL_RATE} -per-session-rate=${PER_SESSION_RATE} -nat -provided-by=${PROVIDED_BY} | |
Restart=on-failure | |
SuccessExitStatus=3 4 | |
RestartForceExitStatus=3 4 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment