File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,3 +8,6 @@ dist_sysconfig_DATA = gridftp-hdfs gridftp-hdfs-environment-bootstrap
88envdir = $(datadir ) /gridftp-hdfs
99dist_env_DATA = gridftp-hdfs-environment
1010
11+ osgsysconfigdir = $(datadir ) /osg/sysconfig
12+ dist_osgsysconfig_DATA = globus-gridftp-server-plugin
13+
Original file line number Diff line number Diff line change 1+ # gridftp-hdfs plugin for setting environment in globus-gridftp-server
2+
3+ . /usr/share/gridftp-hdfs/gridftp-hdfs-environment
4+
5+ if [ -e /etc/sysconfig/gridftp-hdfs ]; then
6+ . /etc/sysconfig/gridftp-hdfs
7+ fi
Original file line number Diff line number Diff line change @@ -67,26 +67,6 @@ export CLASSPATH=$CLASSPATH
6767
6868unset IFS
6969
70- # Configurations for the authz
71- # Only applies to the root user due to ownership issues
72- if [ $UID -eq 0 ]; then
73- # Set defaults if they're not already available
74- # LCAS configuration
75- export LCAS_LOG_LEVEL=${LCAS_LOG_LEVEL:=0}
76- export LCAS_DEBUG_LEVEL=${LCAS_DEBUG_LEVEL:=0}
77- export LCAS_DB_FILE=${LCAS_DB_FILE:=/etc/lcas/lcas.db}
78- export LCAS_DIR=${LCAS_DIR:=/etc/lcas}
79- export LCAS_MOD_HOME=${LCAS_MOD_HOME:=/usr/lib64/modules}
80-
81- # LCMAPS configuration
82- export LCMAPS_LOG_LEVEL=${LCMAPS_LOG_LEVEL:=0}
83- export LCMAPS_DEBUG_LEVEL=${LCMAPS_DEBUG_LEVEL:=0}
84- export LCMAPS_DB_FILE=${LCMAPS_DB_FILE:=/etc/lcmaps.db}
85- export LCMAPS_DIR=${LCMAPS_DIR:=/etc/lcmaps}
86- export LCMAPS_MOD_HOME=${LCMAPS_MOD_HOME:=/usr/lib64/modules}
87- export LCMAPS_POLICY_NAME=${LCMAPS_POLICY_NAME:=globus_gridftp_mapping}
88- fi
89-
9070# New gridftp.conf override in GT 5.2
9171#export GRIDFTP_CONF=/etc/gridftp-hdfs/gridftp.conf
9272export conf=/etc/gridftp-hdfs/gridftp.conf
Original file line number Diff line number Diff line change 1- #! /bin/sh
1+ #! /bin/sh
22
3- if [ -e @datadir_resolved@/gridftp-hdfs/gridftp-hdfs-environment ] ; then
4- . @datadir_resolved@/gridftp-hdfs/gridftp-hdfs-environment
5- fi
6-
7- if [ -e @sysconfdir_resolved@/gridftp-hdfs/gridftp-hdfs-local.conf ] ; then
8- . @sysconfdir_resolved@/gridftp-hdfs/gridftp-hdfs-local.conf
9- fi
10-
11- if [ -e @sysconfdir_resolved@/sysconfig/gridftp-hdfs ] ; then
12- . @sysconfdir_resolved@/sysconfig/gridftp-hdfs
13- fi
3+ OSG_CONFIG= /usr/share/osg/sysconfig/globus-gridftp-server-plugin
4+ [ -e $OSG_CONFIG ] && . $OSG_CONFIG
145
156export CLASSPATH=$CLASSPATH
16-
7+
178exec /usr/sbin/globus-gridftp-server -c @sysconfdir_resolved@/gridftp-hdfs/gridftp-debug.conf -dsi hdfs -no-fork
189
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- if [ -e @datadir_resolved@/gridftp-hdfs/gridftp-hdfs-environment ] ; then
4- . @datadir_resolved@/gridftp-hdfs/gridftp-hdfs-environment
5- fi
6-
7- if [ -e @sysconfdir_resolved@/gridftp-hdfs/gridftp-hdfs-local.conf ] ; then
8- . @sysconfdir_resolved@/gridftp-hdfs/gridftp-hdfs-local.conf
9- fi
10-
11- if [ -e @sysconfdir_resolved@/sysconfig/gridftp-hdfs ] ; then
12- . @sysconfdir_resolved@/sysconfig/gridftp-hdfs
13- fi
3+ OSG_CONFIG= /usr/share/osg/sysconfig/globus-gridftp-server-plugin
4+ [ -e $OSG_CONFIG ] && . $OSG_CONFIG
145
156exec /usr/sbin/globus-gridftp-server -c @sysconfdir_resolved@/gridftp-hdfs/gridftp-inetd.conf -dsi hdfs
167
You can’t perform that action at this time.
0 commit comments