1
0
Fork 0
mirror of git://slackware.nl/current.git synced 2025-01-17 18:12:36 +01:00
slackware-current/source/ap/sysstat/sysstat.var.run.diff
Patrick J Volkerding 5a12e7c134 Slackware 13.0
Wed Aug 26 10:00:38 CDT 2009
Slackware 13.0 x86_64 is released as stable!  Thanks to everyone who
helped make this release possible -- see the RELEASE_NOTES for the
credits.  The ISOs are off to the replicator.  This time it will be a
6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD.
We're taking pre-orders now at store.slackware.com.  Please consider
picking up a copy to help support the project.  Once again, thanks to
the entire Slackware community for all the help testing and fixing
things and offering suggestions during this development cycle.
As always, have fun and enjoy!  -P.
2018-05-31 22:41:17 +02:00

28 lines
864 B
Diff

--- ./sysstat.in.orig 2006-07-05 10:58:00.000000000 -0500
+++ ./sysstat.in 2006-08-14 22:03:13.000000000 -0500
@@ -22,21 +22,21 @@
RETVAL=0
# Remove flag indicating that sadc was successfully launched
-rm -f /tmp/sysstat.run
+rm -f /var/run/sysstat.run
# See how we were called.
case "$1" in
start)
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 /var/run/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 /var/run/sysstat.run ]; then
RETVAL=1
else
- rm -f /tmp/sysstat.run
+ rm -f /var/run/sysstat.run
fi
echo
;;