summaryrefslogtreecommitdiff
blob: 18af313750ecdaa01a22253b7edd449685e779c5 (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
#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/files/xrootd.initd,v 1.3 2012/03/13 17:02:31 bicatali Exp $

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

start() {
    ebegin "Starting extended ROOTD file server"
    start-stop-daemon --start --quiet --user ${XROOTD_USER} \
	--make-pidfile --pidfile /var/run/xrootd.pid \
	--exec /usr/bin/xrootd --background -- ${XROOTD_OPTS}
    eend $?
}

stop() {
    ebegin "Stopping extended ROOTD file server"
    start-stop-daemon --stop --quiet \
	--pidfile /var/run/xrootd.pid \
	--exec /usr/bin/xrootd
    eend $?
}