062459108c
This is particularly useful in cases where rsync --daemon takes a lot of I/O or CPU and user wants to limit these by changing the defaults (via ionice, nice).
13 lines
372 B
Plaintext
13 lines
372 B
Plaintext
#!/sbin/runscript
|
|
# Copyright 1999-2012 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/net-misc/rsync/files/rsyncd.init.d-r1,v 1.1 2012/03/22 22:01:21 idl0r Exp $
|
|
|
|
command="${RSYNC_EXEC:-/usr/bin/rsync}"
|
|
command_args="--daemon ${RSYNC_OPTS}"
|
|
pidfile="/var/run/${SVCNAME}.pid"
|
|
|
|
depend() {
|
|
use net
|
|
}
|