summaryrefslogtreecommitdiff
path: root/net-p2p/resilio-sync/files/resilio-sync.initd
blob: 3e64f108e18ace8d419c3f904f18fc36e154115a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/sbin/openrc-run
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

command="/usr/bin/rslsync"
name="Resilio Sync"
description="Resilio Sync"
command_user="${USER:-rslsync}:${GROUP:-rslsync}"
pidfile="/run/resilio-sync/resilio-sync.pid"
config=${CONFIG:-/etc/resilio-sync/config.json}
command_args="--config $config ${OPTS}"
start_stop_daemon_args="-q"
retry="10"

depend() {
	need net
	provide resilio-sync
}