adb1a209cf
- spec file cleanup
33 lines
1001 B
Diff
33 lines
1001 B
Diff
--- sysstat-7.0.4/sysstat.in.tmp 2007-01-22 14:02:54.000000000 +0100
|
|
+++ sysstat-7.0.4/sysstat.in 2007-02-12 13:57:41.000000000 +0100
|
|
@@ -17,8 +17,9 @@
|
|
|
|
RETVAL=0
|
|
HISTORY=0
|
|
+TMPDIR=/var/run/
|
|
# Remove flag indicating that sadc was successfully launched
|
|
-rm -f /tmp/sysstat.run
|
|
+rm -f ${TMPDIR}sysstat.run
|
|
|
|
# See how we were called.
|
|
case "$1" in
|
|
@@ -39,15 +40,15 @@
|
|
CHOWN ${CURRENTDIR} ${CURRENTFILE} ${CURRENTDIR}/${CURRENTFILE}
|
|
fi
|
|
echo -n "Calling the system activity data collector (sadc): "
|
|
- SU SA_LIB_DIR/sadc -F -L - && touch /tmp/sysstat.run QUOTE
|
|
+ SU SA_LIB_DIR/sadc -F -L - && touch ${TMPDIR}sysstat.run QUOTE
|
|
|
|
# Try to guess if sadc was successfully launched. The difficulty
|
|
# here is that the exit code is lost when the above command is
|
|
# run via "su foo -c ..."
|
|
- if [ ! -f /tmp/sysstat.run ]; then
|
|
+ if [ ! -f ${TMPDIR}sysstat.run ]; then
|
|
RETVAL=1
|
|
else
|
|
- rm -f /tmp/sysstat.run
|
|
+ rm -f ${TMPDIR}sysstat.run
|
|
fi
|
|
echo
|
|
;;
|