This commit is contained in:
parent
62b668bf80
commit
d808295955
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Sep 14 15:03:17 CEST 2007 - ro@suse.de
|
||||||
|
|
||||||
|
- fix (#300526) restart will start standalone rsync if running
|
||||||
|
under xinetd
|
||||||
|
- use a pid file for rsyncd in init script so that rcrsyncd
|
||||||
|
will not show status running for an rsync started by xinetd
|
||||||
|
- insert "pid file" entry into rsyncd.conf if not present
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Sep 12 15:51:20 CEST 2007 - dmueller@suse.de
|
Wed Sep 12 15:51:20 CEST 2007 - dmueller@suse.de
|
||||||
|
|
||||||
|
17
rsync.spec
17
rsync.spec
@ -20,10 +20,10 @@ BuildRequires: te_ams te_latex
|
|||||||
BuildRequires: popt-devel zlib-devel
|
BuildRequires: popt-devel zlib-devel
|
||||||
License: GPL v2 or later
|
License: GPL v2 or later
|
||||||
Group: Productivity/Networking/Other
|
Group: Productivity/Networking/Other
|
||||||
PreReq: %fillup_prereq %insserv_prereq
|
PreReq: %fillup_prereq %insserv_prereq sed grep
|
||||||
Autoreqprov: on
|
AutoReqProv: on
|
||||||
Version: 2.6.9
|
Version: 2.6.9
|
||||||
Release: 47
|
Release: 49
|
||||||
Summary: Replacement for RCP/mirror that has Many More Features
|
Summary: Replacement for RCP/mirror that has Many More Features
|
||||||
Source: samba.org/ftp/rsync/rsync-%{version}.tar.bz2
|
Source: samba.org/ftp/rsync/rsync-%{version}.tar.bz2
|
||||||
Source1: logrotate.rsync
|
Source1: logrotate.rsync
|
||||||
@ -37,7 +37,7 @@ Patch3: system-zlib.diff
|
|||||||
Patch4: rsync-overlong.patch
|
Patch4: rsync-overlong.patch
|
||||||
Patch5: lutimes-hack.diff
|
Patch5: lutimes-hack.diff
|
||||||
Patch6: rsync-fix_fuzzy.patch
|
Patch6: rsync-fix_fuzzy.patch
|
||||||
URL: http://rsync.samba.org/
|
Url: http://rsync.samba.org/
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%define with_system_zlib 0
|
%define with_system_zlib 0
|
||||||
|
|
||||||
@ -119,6 +119,9 @@ ln -sf ../../etc/init.d/rsyncd $RPM_BUILD_ROOT/usr/sbin/rcrsyncd
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
%fillup_and_insserv rsyncd
|
%fillup_and_insserv rsyncd
|
||||||
|
if ! grep -q "^pid file" /etc/rsyncd.conf ; then
|
||||||
|
sed -i -e "/^log file/{;p;s@\(.*\)@pid file = /var/run/rsyncd.pid@;}" /etc/rsyncd.conf
|
||||||
|
fi
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%restart_on_update rsyncd
|
%restart_on_update rsyncd
|
||||||
@ -140,6 +143,12 @@ ln -sf ../../etc/init.d/rsyncd $RPM_BUILD_ROOT/usr/sbin/rcrsyncd
|
|||||||
%doc COPYING NEWS README tech_report.ps tech_report.tex
|
%doc COPYING NEWS README tech_report.ps tech_report.tex
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Sep 14 2007 - ro@suse.de
|
||||||
|
- fix (#300526) restart will start standalone rsync if running
|
||||||
|
under xinetd
|
||||||
|
- use a pid file for rsyncd in init script so that rcrsyncd
|
||||||
|
will not show status running for an rsync started by xinetd
|
||||||
|
- insert "pid file" entry into rsyncd.conf if not present
|
||||||
* Wed Sep 12 2007 - dmueller@suse.de
|
* Wed Sep 12 2007 - dmueller@suse.de
|
||||||
- build parallel
|
- build parallel
|
||||||
- fix hardlinks accross partition
|
- fix hardlinks accross partition
|
||||||
|
@ -4,6 +4,7 @@ use chroot = true
|
|||||||
transfer logging = true
|
transfer logging = true
|
||||||
log format = %h %o %f %l %b
|
log format = %h %o %f %l %b
|
||||||
log file = /var/log/rsyncd.log
|
log file = /var/log/rsyncd.log
|
||||||
|
pid file = /var/run/rsyncd.pid
|
||||||
hosts allow = trusted.hosts
|
hosts allow = trusted.hosts
|
||||||
slp refresh = 300
|
slp refresh = 300
|
||||||
|
|
||||||
|
11
rsyncd.rc
11
rsyncd.rc
@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
RSYNCD_BIN=/usr/sbin/rsyncd
|
RSYNCD_BIN=/usr/sbin/rsyncd
|
||||||
test -x $RSYNCD_BIN || exit 5
|
test -x $RSYNCD_BIN || exit 5
|
||||||
|
RSYNCD_PID=/var/run/rsyncd.pid
|
||||||
|
|
||||||
# Shell functions sourced from /etc/rc.status:
|
# Shell functions sourced from /etc/rc.status:
|
||||||
# rc_check check and set local and overall rc status
|
# rc_check check and set local and overall rc status
|
||||||
@ -63,7 +64,7 @@ case "$1" in
|
|||||||
|
|
||||||
# NOTE: startproc return 0, even if service is
|
# NOTE: startproc return 0, even if service is
|
||||||
# already running to match LSB spec.
|
# already running to match LSB spec.
|
||||||
startproc -t 1 $RSYNCD_BIN --daemon
|
startproc -p $RSYNCD_PID -t 1 $RSYNCD_BIN --daemon
|
||||||
|
|
||||||
# Remember status and be verbose
|
# Remember status and be verbose
|
||||||
rc_status -v
|
rc_status -v
|
||||||
@ -73,7 +74,7 @@ case "$1" in
|
|||||||
## Stop daemon with killproc(8) and if this fails
|
## Stop daemon with killproc(8) and if this fails
|
||||||
## set echo the echo return value.
|
## set echo the echo return value.
|
||||||
|
|
||||||
killproc -TERM $RSYNCD_BIN
|
killproc -p $RSYNCD_PID -TERM $RSYNCD_BIN
|
||||||
|
|
||||||
# Remember status and be verbose
|
# Remember status and be verbose
|
||||||
rc_status -v
|
rc_status -v
|
||||||
@ -102,7 +103,7 @@ case "$1" in
|
|||||||
## If it does not support it, restart.
|
## If it does not support it, restart.
|
||||||
|
|
||||||
echo -n "Reload service rsync"
|
echo -n "Reload service rsync"
|
||||||
killproc -HUP $RSYNCD_BIN
|
killproc -p $RSYNCD_PID -HUP $RSYNCD_BIN
|
||||||
rc_status -v
|
rc_status -v
|
||||||
;;
|
;;
|
||||||
reload)
|
reload)
|
||||||
@ -111,7 +112,7 @@ case "$1" in
|
|||||||
|
|
||||||
# If it supports signalling:
|
# If it supports signalling:
|
||||||
echo -n "Reload service rsync"
|
echo -n "Reload service rsync"
|
||||||
killproc -HUP $RSYNCD_BIN
|
killproc -p $RSYNCD_PID -HUP $RSYNCD_BIN
|
||||||
rc_status -v
|
rc_status -v
|
||||||
;;
|
;;
|
||||||
status)
|
status)
|
||||||
@ -126,7 +127,7 @@ case "$1" in
|
|||||||
# 3 - service not running
|
# 3 - service not running
|
||||||
|
|
||||||
# NOTE: checkproc returns LSB compliant status values.
|
# NOTE: checkproc returns LSB compliant status values.
|
||||||
checkproc $RSYNCD_BIN
|
checkproc -p $RSYNCD_PID $RSYNCD_BIN
|
||||||
rc_status -v
|
rc_status -v
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
Loading…
Reference in New Issue
Block a user