aboutsummaryrefslogtreecommitdiff
blob: 1e1f2c828c2f7f5a4ce88732d42562a27a510703 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

source /etc/conf.d/xrootd

depend() {
    need net
    use logger dns
    provide root-file-server
}

start() {
    ebegin "Starting File Residency Manager purge 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_PURGED_OPTS}
    eend $?
}

stop() {
    ebegin "Stopping File Residency Manager purge daemon"
    start-stop-daemon --stop --quiet \
	--pidfile /var/run/${RC_SVCNAME}.pid \
	--exec /usr/bin/${RC_SVCNAME}
    eend $?
}