summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpigfoot <pigfoot@gmail.com>2015-02-10 17:31:35 +0800
committerpigfoot <pigfoot@gmail.com>2015-02-10 17:31:35 +0800
commit9056654aeae1e5f8901718bf92b3bca9748950ac (patch)
tree38dad28d76e007ea4d184b716faade3a424ac4a1
parentRefine bittorrent-sync #3 (diff)
downloadpigfoot-9056654aeae1e5f8901718bf92b3bca9748950ac.tar.gz
pigfoot-9056654aeae1e5f8901718bf92b3bca9748950ac.tar.bz2
pigfoot-9056654aeae1e5f8901718bf92b3bca9748950ac.zip
Refine bittorrent-sync #4
-rw-r--r--net-p2p/bittorrent-sync/bittorrent-sync-1.4.110.ebuild2
-rw-r--r--net-p2p/bittorrent-sync/files/btsync.conf2
-rw-r--r--net-p2p/bittorrent-sync/files/init.d/btsync2
3 files changed, 3 insertions, 3 deletions
diff --git a/net-p2p/bittorrent-sync/bittorrent-sync-1.4.110.ebuild b/net-p2p/bittorrent-sync/bittorrent-sync-1.4.110.ebuild
index 34f9c5a..b184295 100644
--- a/net-p2p/bittorrent-sync/bittorrent-sync-1.4.110.ebuild
+++ b/net-p2p/bittorrent-sync/bittorrent-sync-1.4.110.ebuild
@@ -39,7 +39,7 @@ src_install() {
# Install the systemd unit file
systemd_dounit "${FILESDIR}/systemd/${NAME}.service"
- for x in /var/lib/${NAME}; do
+ for x in /var/{lib,run}/${NAME}; do
keepdir "${x}"
fowners btsync:btsync "${x}"
done
diff --git a/net-p2p/bittorrent-sync/files/btsync.conf b/net-p2p/bittorrent-sync/files/btsync.conf
index c3c334e..6a4a5a9 100644
--- a/net-p2p/bittorrent-sync/files/btsync.conf
+++ b/net-p2p/bittorrent-sync/files/btsync.conf
@@ -3,7 +3,7 @@
"listening_port" : 0,
"storage_path" : "/var/lib/btsync",
- "pid_file" : "/var/run/btsync.pid",
+ "pid_file" : "/var/run/btsync/btsync.pid",
"check_for_updates" : true,
"use_upnp" : true,
diff --git a/net-p2p/bittorrent-sync/files/init.d/btsync b/net-p2p/bittorrent-sync/files/init.d/btsync
index 2aa7cb7..9e7cd3d 100644
--- a/net-p2p/bittorrent-sync/files/init.d/btsync
+++ b/net-p2p/bittorrent-sync/files/init.d/btsync
@@ -8,7 +8,7 @@ SYNC_NAME="btsync"
SYNC_PATH="/opt/${SYNC_NAME}/"
SYNC_BINARY="${SYNC_PATH}/${SYNC_NAME}"
SYNC_OPTS="--nodaemon --config /etc/${SYNC_NAME}/btsync.conf"
-SYNC_PIDFILE="/var/run/${SYNC_NAME}.pid"
+SYNC_PIDFILE="/var/run/${SYNC_NAME}/${SYNC_NAME}.pid"
SYNC_USER=${SYNC_USER:-btsync}
SYNC_GROUP=${SYNC_GROUP:-btsync}