summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-libs/xrootd/files')
-rw-r--r--net-libs/xrootd/files/cmsd.initd9
-rw-r--r--net-libs/xrootd/files/frm_purged.initd9
-rw-r--r--net-libs/xrootd/files/frm_xfrd.initd9
-rw-r--r--net-libs/xrootd/files/xrootd.initd9
4 files changed, 28 insertions, 8 deletions
diff --git a/net-libs/xrootd/files/cmsd.initd b/net-libs/xrootd/files/cmsd.initd
index 86b8e4b7bcd5..66912202824e 100644
--- a/net-libs/xrootd/files/cmsd.initd
+++ b/net-libs/xrootd/files/cmsd.initd
@@ -1,7 +1,7 @@
#!/sbin/runscript
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/xrootd/files/cmsd.initd,v 1.1 2011/12/19 19:36:35 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/xrootd/files/cmsd.initd,v 1.2 2012/12/05 18:19:15 bicatali Exp $
source /etc/conf.d/xrootd
@@ -11,6 +11,11 @@ depend() {
provide root-file-server
}
+start_pre() {
+ checkpath -q -d -m 0755 -o xrootd:xrootd /var/run/spool
+ checkpath -q -d -m 0755 -o xrootd:xrootd /var/run/xrootd
+}
+
start() {
ebegin "Starting Cluster Management Service daemon"
start-stop-daemon --start --quiet --user ${XROOTD_USER} \
diff --git a/net-libs/xrootd/files/frm_purged.initd b/net-libs/xrootd/files/frm_purged.initd
index daf455627f3f..ad3e7a8e46d8 100644
--- a/net-libs/xrootd/files/frm_purged.initd
+++ b/net-libs/xrootd/files/frm_purged.initd
@@ -1,7 +1,7 @@
#!/sbin/runscript
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/xrootd/files/frm_purged.initd,v 1.1 2011/12/19 19:36:35 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/xrootd/files/frm_purged.initd,v 1.2 2012/12/05 18:19:15 bicatali Exp $
source /etc/conf.d/xrootd
@@ -11,6 +11,11 @@ depend() {
provide root-file-server
}
+start_pre() {
+ checkpath -q -d -m 0755 -o xrootd:xrootd /var/run/spool
+ checkpath -q -d -m 0755 -o xrootd:xrootd /var/run/xrootd
+}
+
start() {
ebegin "Starting File Residency Manager purge daemon"
start-stop-daemon --start --quiet --user ${XROOTD_USER} \
diff --git a/net-libs/xrootd/files/frm_xfrd.initd b/net-libs/xrootd/files/frm_xfrd.initd
index 580042248256..846c1820248f 100644
--- a/net-libs/xrootd/files/frm_xfrd.initd
+++ b/net-libs/xrootd/files/frm_xfrd.initd
@@ -1,7 +1,7 @@
#!/sbin/runscript
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 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 $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/xrootd/files/frm_xfrd.initd,v 1.2 2012/12/05 18:19:15 bicatali Exp $
source /etc/conf.d/xrootd
@@ -11,6 +11,11 @@ depend() {
provide root-file-server
}
+start_pre() {
+ checkpath -q -d -m 0755 -o xrootd:xrootd /var/run/spool
+ checkpath -q -d -m 0755 -o xrootd:xrootd /var/run/xrootd
+}
+
start() {
ebegin "Starting File Residency Manager transfer daemon"
start-stop-daemon --start --quiet --user ${XROOTD_USER} \
diff --git a/net-libs/xrootd/files/xrootd.initd b/net-libs/xrootd/files/xrootd.initd
index cbc9122e1589..1685ccc5c009 100644
--- a/net-libs/xrootd/files/xrootd.initd
+++ b/net-libs/xrootd/files/xrootd.initd
@@ -1,7 +1,7 @@
#!/sbin/runscript
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/xrootd/files/xrootd.initd,v 1.1 2011/12/19 19:36:35 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/xrootd/files/xrootd.initd,v 1.2 2012/12/05 18:19:15 bicatali Exp $
depend() {
need net
@@ -9,6 +9,11 @@ depend() {
provide root-file-server
}
+start_pre() {
+ checkpath -q -d -m 0755 -o xrootd:xrootd /var/run/spool
+ checkpath -q -d -m 0755 -o xrootd:xrootd /var/run/xrootd
+}
+
start() {
ebegin "Starting extended ROOTD file server"
start-stop-daemon --start --quiet --user ${XROOTD_USER} \