diff --git a/btsync/btsync.service b/btsync/btsync.service new file mode 100644 index 0000000..a269584 --- /dev/null +++ b/btsync/btsync.service @@ -0,0 +1,14 @@ +[Unit] +Description=BitTorrent Sync Daemon +After=network.target +AssertPathExists=/etc/btsync/config.json +AssertPathIsDirectory=/data/.syncsystem +AssertPathIsDirectory=/data/syncaod + +[Service] +ExecStart=/usr/bin/btsync --nodaemon --config /etc/btsync/config.json +Restart=always +RestartSec=10 + +[Install] +WantedBy=multi-user.target