Browse Source

rsync is such a CPU burner that it has to be forced to play nicer

master
parent
commit
759a3057d9
  1. 6
      rsync/rc.rsync
  2. 2
      rsync/rsync.spec

6
rsync/rc.rsync

@ -17,7 +17,7 @@
%start -p 200 -u root
if opServiceEnabled rsync; then
@l_prefix@/bin/rsync $rsync_flags \
nice -n 20 @l_prefix@/bin/rsync $rsync_flags \
--daemon --config=$rsync_cfgfile
fi
@ -34,7 +34,7 @@
kill -TERM `cat $rsync_pidfile`
sleep 2
fi
@l_prefix@/bin/rsync $rsync_flags \
nice -n 20 @l_prefix@/bin/rsync $rsync_flags \
--daemon --config=$rsync_cfgfile
fi
@ -44,7 +44,7 @@
-n ${rsync_log_numfiles} -s ${rsync_log_minsize} \
-d -z ${rsync_log_complevel} -o @l_musr@ -g @l_mgrp@ -m 644 \
-E "kill -TERM `cat $rsync_pidfile`; sleep 2; \
@l_prefix@/bin/rsync $rsync_flags --daemon --config=$rsync_cfgfile" \
nice -n 20 @l_prefix@/bin/rsync $rsync_flags --daemon --config=$rsync_cfgfile" \
$rsync_logfile
fi

2
rsync/rsync.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [CORE]
Group: Filesystem
License: GPL
Version: 2.5.5
Release: 20021207
Release: 20021213
# list of sources
Source0: http://rsync.samba.org/ftp/rsync/rsync-%{version}.tar.gz

Loading…
Cancel
Save