[interchange-cvs] interchange - jon modified SPECS/interchange-wrapper

interchange-core@interchange.redhat.com interchange-core@interchange.redhat.com
Tue Apr 30 09:00:00 2002


User:      jon
Date:      2002-04-30 12:59:37 GMT
Modified:  SPECS    Tag: STABLE_4_8-branch interchange-wrapper
Log:
Check in updated wrapper. Fix some paths, and get login shell from su
to avoid read errors when switching from root.

Revision  Changes    Path
No                   revision



No                   revision



1.1.2.3   +15 -15    interchange/SPECS/Attic/interchange-wrapper


rev 1.1.2.3, prev_rev 1.1.2.2
Index: interchange-wrapper
===================================================================
RCS file: /var/cvs/interchange/SPECS/Attic/interchange-wrapper,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -u -r1.1.2.2 -r1.1.2.3
--- interchange-wrapper	29 Apr 2002 22:55:46 -0000	1.1.2.2
+++ interchange-wrapper	30 Apr 2002 12:59:37 -0000	1.1.2.3
@@ -4,26 +4,26 @@
 # Calls Interchange with special locations of files as installed by RPM
 # http://interchange.redhat.com/
 
-ICBASE=/usr/lib/interchange
-ETCBASE=/etc
-RUNBASE=/var/run
-LOGBASE=/var/log
+IC=/usr/lib/interchange
+ETC=/etc
+RUN=/var/run/interchange
+LOG=/var/log/interchange
 
-RUNSTRING="$ICBASE/interchange/bin/interchange \
+RUNSTRING="$IC/bin/interchange \
 	--unix \
-	-configfile $ETCBASE/interchange.cfg \
-	-pidfile $RUNBASE/interchange/interchange.pid \
-	-logfile $LOGBASE/interchange/error.log \
-	ErrorFile=$LOGBASE/interchange/error.log \
-	PIDfile=$RUNBASE/interchange/interchange.pid \
-	-confdir $ICBASE/etc \
-	-rundir $RUNBASE/interchange \
-	SocketFile=$RUNBASE/interchange/socket \
-	IPCsocket=$RUNBASE/interchange/socket.ipc"
+	-configfile $ETC/interchange.cfg \
+	-pidfile $RUN/interchange.pid \
+	-logfile $LOG/error.log \
+	ErrorFile=$LOG/error.log \
+	PIDfile=$RUN/interchange.pid \
+	-confdir $IC/etc \
+	-rundir $RUN \
+	SocketFile=$RUN/socket \
+	IPCsocket=$RUN/socket.ipc"
 
 if test "`whoami`" = root
 then 
-	exec su interch -c "$RUNSTRING $*"
+	exec su - interch -c "$RUNSTRING $*"
 else
 	exec $RUNSTRING $*
 fi