summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Lieber <klieber@gentoo.org>2004-06-06 14:14:26 +0000
committerKurt Lieber <klieber@gentoo.org>2004-06-06 14:14:26 +0000
commit2aa8fadba6934e2792fed00faafc96737bc22a3a (patch)
treec9c4cc1463f8fb63b610daccc2844ba24d5898a5 /app-admin/gentoo-rsync-mirror/files
parentStable on sparc. (Manifest recommit) (diff)
downloadgentoo-2-2aa8fadba6934e2792fed00faafc96737bc22a3a.tar.gz
gentoo-2-2aa8fadba6934e2792fed00faafc96737bc22a3a.tar.bz2
gentoo-2-2aa8fadba6934e2792fed00faafc96737bc22a3a.zip
added additional einfo language, changed chroot to 'yes' instead of 'no' in files/rsyncd.conf and disabled logging of transfers. no changes of substance to the ebuild itself
Diffstat (limited to 'app-admin/gentoo-rsync-mirror/files')
-rw-r--r--app-admin/gentoo-rsync-mirror/files/digest-gentoo-rsync-mirror-1.0-r30
-rw-r--r--app-admin/gentoo-rsync-mirror/files/rsync-gentoo-portage.sh12
-rw-r--r--app-admin/gentoo-rsync-mirror/files/rsyncd.conf10
-rw-r--r--app-admin/gentoo-rsync-mirror/files/rsyncd.init26
4 files changed, 24 insertions, 24 deletions
diff --git a/app-admin/gentoo-rsync-mirror/files/digest-gentoo-rsync-mirror-1.0-r3 b/app-admin/gentoo-rsync-mirror/files/digest-gentoo-rsync-mirror-1.0-r3
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/app-admin/gentoo-rsync-mirror/files/digest-gentoo-rsync-mirror-1.0-r3
diff --git a/app-admin/gentoo-rsync-mirror/files/rsync-gentoo-portage.sh b/app-admin/gentoo-rsync-mirror/files/rsync-gentoo-portage.sh
index 8b4015c79df4..b38e25533015 100644
--- a/app-admin/gentoo-rsync-mirror/files/rsync-gentoo-portage.sh
+++ b/app-admin/gentoo-rsync-mirror/files/rsync-gentoo-portage.sh
@@ -1,16 +1,16 @@
#!/bin/bash
RSYNC="/usr/bin/rsync"
-OPTS="--quiet --recursive --links --perms --times --devices --compress --delete --timeout=600"
+OPTS="--quiet --recursive --links --perms --times --devices --delete --timeout=300"
#Uncomment the following line only if you have been granted access to rsync1.us.gentoo.org
#SRC="rsync://rsync1.us.gentoo.org/gentoo-portage"
#If you are waiting for access to our master mirror, select one of our mirrors to mirror from:
-SRC="rsync://rsync.gentoo.org/gentoo-portage"
-DST="/opt/gentoo-rsync/portage/"
+SRC="rsync://rsync2.de.gentoo.org/gentoo-portage"
+DST="/space/gentoo/rsync/"
-echo "Started update at" `date` >> /var/log/`basename $0`.log 2>&1
+echo "Started update at" `date` >> $0.log 2>&1
logger -t rsync "re-rsyncing the gentoo-portage tree"
-${RSYNC} ${OPTS} ${SRC} ${DST} >> /var/log/`basename $0`.log 2>&1
+${RSYNC} ${OPTS} ${SRC} ${DST} >> $0.log 2>&1
-echo "End: "`date` >> /var/log/`basename $0`.log 2>&1
+echo "End: "`date` >> $0.log 2>&1
diff --git a/app-admin/gentoo-rsync-mirror/files/rsyncd.conf b/app-admin/gentoo-rsync-mirror/files/rsyncd.conf
index 12991ddfe86b..444882f18917 100644
--- a/app-admin/gentoo-rsync-mirror/files/rsyncd.conf
+++ b/app-admin/gentoo-rsync-mirror/files/rsyncd.conf
@@ -1,14 +1,14 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/gentoo-rsync-mirror/files/rsyncd.conf,v 1.4 2004/05/02 22:58:16 mholzer Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/gentoo-rsync-mirror/files/rsyncd.conf,v 1.5 2004/06/06 14:14:26 klieber Exp $
-#uid = nobody
-#gid = nobody
-use chroot = no
+uid = nobody
+gid = nobody
+use chroot = yes
max connections = 20
pid file = /var/run/rsyncd.pid
motd file = /etc/rsync/rsyncd.motd
-transfer logging = yes
+transfer logging = no
log format = %t %a %m %f %b
syslog facility = local3
timeout = 300
diff --git a/app-admin/gentoo-rsync-mirror/files/rsyncd.init b/app-admin/gentoo-rsync-mirror/files/rsyncd.init
index 70d6ad5c46fd..1ce940df1fd5 100644
--- a/app-admin/gentoo-rsync-mirror/files/rsyncd.init
+++ b/app-admin/gentoo-rsync-mirror/files/rsyncd.init
@@ -1,24 +1,24 @@
#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/gentoo-rsync-mirror/files/rsyncd.init,v 1.4 2004/05/02 22:58:16 mholzer Exp $
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2
+or later
+# $Header: /var/cvsroot/gentoo-x86/app-admin/gentoo-rsync-mirror/files/rsyncd.init,v 1.5 2004/06/06 14:14:26 klieber Exp $
depend() {
- use net
+need net
}
# FYI: --sparce seems to cause problems.
-RSYNC_OPTS="--safe-links --compress --bwlimit=700 --timeout=1800"
-
+RSYNCOPTS="--daemon --safe-links --timeout=300"
start() {
- ebegin "Starting rsyncd"
- rsync --daemon ${RSYNC_OPTS}
- eend $?
+ebegin "Starting rsync daemon"
+start-stop-daemon --start --quiet --pidfile /var/run/rsyncd.pid --nicelevel 15 --exec /usr/bin/rsync -- ${RSYNCOPTS}
+eend $?
}
stop() {
- ebegin "Stopping rsyncd"
- kill `cat /var/run/rsyncd.pid`
- eend $?
-}
+ebegin "Stopping rsync daemon"
+start-stop-daemon --stop --quiet --pidfile /var/run/rsyncd.pid
+eend $?
+}