diff options
author | Vladimir Pavljuchenkov (SpiderX) <spiderx@spiderx.dp.ua> | 2018-10-07 12:12:22 +0300 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-10-14 12:45:21 +0200 |
commit | 5ff7b4dd3ec48e960617e39a20a1893690082c4a (patch) | |
tree | 43a156010b425e14a22ece8c17e2b5d4e13d6790 /net-p2p/resilio-sync/files | |
parent | net-vpn/i2p: use real name of maintainer (diff) | |
download | gentoo-5ff7b4dd3ec48e960617e39a20a1893690082c4a.tar.gz gentoo-5ff7b4dd3ec48e960617e39a20a1893690082c4a.tar.bz2 gentoo-5ff7b4dd3ec48e960617e39a20a1893690082c4a.zip |
net-p2p/resilio-sync: version bump to 2.6.1, improve init
Signed-off-by: Vladimir Pavljuchenkov <spiderx@spiderx.dp.ua>
Package-Manager: Portage-2.3.49, Repoman-2.3.11
Closes: https://github.com/gentoo/gentoo/pull/10092
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'net-p2p/resilio-sync/files')
5 files changed, 13 insertions, 12 deletions
diff --git a/net-p2p/resilio-sync/files/resilio-sync-user.initd b/net-p2p/resilio-sync/files/resilio-sync-user.initd index efcaa2d7778c..6772f6dc14d9 100644 --- a/net-p2p/resilio-sync/files/resilio-sync-user.initd +++ b/net-p2p/resilio-sync/files/resilio-sync-user.initd @@ -1,5 +1,5 @@ #!/sbin/openrc-run -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 USER="${RC_SVCNAME##*.}" @@ -8,7 +8,7 @@ name="Resilio Sync for $USER" description="Resilio Sync" command_user="${USER:-rslsync}:${GROUP:-rslsync}" pidfile="${PIDFILE:-/home/$USER/.config/resilio-sync/resilio-sync.pid}" -config=${CONFIG:-/home/$USER/.config/resilio-sync/config.json} +config="${CONFIG:-/home/$USER/.config/resilio-sync/config.json}" command_args="--config $config ${OPTS}" start_stop_daemon_args="-q" retry="10" diff --git a/net-p2p/resilio-sync/files/resilio-sync-user.service b/net-p2p/resilio-sync/files/resilio-sync-user.service index 6c82440ac679..bb57c738b6d5 100644 --- a/net-p2p/resilio-sync/files/resilio-sync-user.service +++ b/net-p2p/resilio-sync/files/resilio-sync-user.service @@ -1,6 +1,6 @@ [Unit] Description=Resilio Sync service -Documentation=http://help.getsync.com/ +Documentation=https://help.resilio.com After=network.target network-online.target [Service] diff --git a/net-p2p/resilio-sync/files/resilio-sync.confd b/net-p2p/resilio-sync/files/resilio-sync.confd index 08c4255fe296..7d8e9ea27cff 100644 --- a/net-p2p/resilio-sync/files/resilio-sync.confd +++ b/net-p2p/resilio-sync/files/resilio-sync.confd @@ -5,8 +5,8 @@ OPTS="--log /var/log/resilio-sync/resilio-sync.log" # User and group daemon runs as -USER="rslsync" -GROUP="rslsync" +RSLSYNC_USER="rslsync" +RSLSYNC_GROUP="rslsync" # Resilio Sync config file #CONFIG="/etc/resilio-sync/config.json" diff --git a/net-p2p/resilio-sync/files/resilio-sync.initd b/net-p2p/resilio-sync/files/resilio-sync.initd index 3e64f108e18a..8a7263446a5f 100644 --- a/net-p2p/resilio-sync/files/resilio-sync.initd +++ b/net-p2p/resilio-sync/files/resilio-sync.initd @@ -1,18 +1,17 @@ #!/sbin/openrc-run -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2018 Gentoo Authors # 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}" +command_user="${RSLSYNC_USER:-rslsync}:${RSLSYNC_GROUP:-rslsync}" pidfile="/run/resilio-sync/resilio-sync.pid" -config=${CONFIG:-/etc/resilio-sync/config.json} +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 } diff --git a/net-p2p/resilio-sync/files/resilio-sync.service b/net-p2p/resilio-sync/files/resilio-sync.service index 32f24a95aa84..1f1a0b95bc72 100644 --- a/net-p2p/resilio-sync/files/resilio-sync.service +++ b/net-p2p/resilio-sync/files/resilio-sync.service @@ -1,15 +1,17 @@ [Unit] Description=Resilio Sync service -Documentation=http://help.getsync.com/ +Documentation=https://help.resilio.com After=network.target network-online.target [Service] Type=forking -User=rslsync -Group=rslsync UMask=0002 Restart=on-failure PermissionsStartOnly=true + +User=rslsync +Group=rslsync + PIDFile=/var/run/resilio-sync/resilio-sync.pid ExecStart=/usr/bin/rslsync --config /etc/resilio-sync/config.json |