[Pvfs2-cvs] commit by slang in pvfs2/examples: pvfs2-server.rc.in
CVS commit program
cvs at parl.clemson.edu
Sat Nov 24 13:51:19 EST 2007
Update of /projects/cvsroot/pvfs2/examples
In directory parlweb1:/tmp/cvs-serv30961/examples
Modified Files:
Tag: pvfs-2-7-branch
pvfs2-server.rc.in
Log Message:
fixes for new single conf file
Index: pvfs2-server.rc.in
===================================================================
RCS file: /projects/cvsroot/pvfs2/examples/pvfs2-server.rc.in,v
diff -p -u -r1.4 -r1.4.54.1
--- pvfs2-server.rc.in 7 Jun 2005 19:24:43 -0000 1.4
+++ pvfs2-server.rc.in 24 Nov 2007 18:51:19 -0000 1.4.54.1
@@ -9,7 +9,6 @@
# set these if you want to hard code the location of the config files:
PVFS2_FS_CONF=
-PVFS2_SERVER_CONF=
# override this if your server binary resides elsewhere
PVFS2SERVER=@prefix@/sbin/pvfs2-server
# override this if you want servers to automatically pick a conf file,
@@ -35,33 +34,11 @@ if ! [ -r ${PVFS2_FS_CONF} ]; then
exit 1
fi
-# look for server conf
-if test "x$PVFS2_SERVER_CONF" = x
-then
- #determine hostname
- if test "x$HOSTNAME" = x
- then
- HOSTNAME=`hostname`
- fi
- THIS_HOSTNAME=`echo $HOSTNAME | cut -d '.' -f 1`
-
- if test "x$THIS_HOSTNAME" = xlocalhost
- then
- echo "Warning: detected hostname as localhost, may confuse PVFS2 startup"
- fi
-
- PVFS2_SERVER_CONF=${PVFS2_CONF_PATH}/pvfs2-server.conf-${THIS_HOSTNAME}
-fi
-if ! [ -r ${PVFS2_SERVER_CONF} ]; then
- echo "Error: could not read ${PVFS2_SERVER_CONF}"
- exit 1
-fi
-
# See how we were called.
case "$1" in
start)
echo -n "Starting PVFS2 server: "
- daemon ${PVFS2SERVER} --pidfile ${PVFS2_PIDFILE} ${PVFS2_FS_CONF} ${PVFS2_SERVER_CONF}
+ daemon ${PVFS2SERVER} --pidfile ${PVFS2_PIDFILE} ${PVFS2_FS_CONF}
echo
touch /var/lock/subsys/pvfs2-server
;;
More information about the Pvfs2-cvs
mailing list