You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-libs/xrootd/files/frm_xfrd.initd

31 lines
878 B

#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/xrootd/files/frm_xfrd.initd,v 1.1 2011/12/19 19:36:35 bicatali Exp $
source /etc/conf.d/xrootd
depend() {
need net
use logger dns
provide root-file-server
}
start() {
ebegin "Starting File Residency Manager transfer daemon"
start-stop-daemon --start --quiet --user ${XROOTD_USER} \
--make-pidfile --pidfile /var/run/${RC_SVCNAME}.pid \
--exec /usr/bin/${RC_SVCNAME} --background -- \
-c ${XROOTD_CONF} -l ${XROOTD_LOGDIR}/${RC_SVCNAME}.log \
${FRM_XFRD_OPTS}
eend $?
}
stop() {
ebegin "Stopping File Residency Manager transfer daemon"
start-stop-daemon --stop --quiet \
--pidfile /var/run/${RC_SVCNAME}.pid \
--exec /usr/bin/${RC_SVCNAME}
eend $?
}