Skip to content

Instantly share code, notes, and snippets.

@araddon
Last active August 29, 2015 14:16
Show Gist options
  • Save araddon/5c12cc2d738cad98b5eb to your computer and use it in GitHub Desktop.
Save araddon/5c12cc2d738cad98b5eb to your computer and use it in GitHub Desktop.
syncthing
description "Syncthing P2P sync service"
start on (local-filesystems and net-device-up IFACE!=lo)
stop on runlevel [!2345]
env STNORESTART=yes
env HOME=/home/aaron
setuid "aaron"
setgid "aaron"
exec /usr/local/bin/syncthing
respawn
#!/bin/bash
#
# v 0.02
cd /tmp
rm -f syncthing.tar.gz
wget https://github.com/syncthing/syncthing/releases/download/v0.10.24/syncthing-linux-amd64-v0.10.24.tar.gz -O syncthing.tar.gz
rm -rf /usr/local/bin/syncthing
tar -xzf syncthing.tar.gz
rm syncthing.tar.gz
mv syncthing-linux*/syncthing /usr/local/bin/syncthing
chmod +x /usr/local/bin/syncthing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment