sysstat/sysstat-8.1.6-sa1sa2lock.diff

59 lines
1.8 KiB
Diff
Raw Permalink Normal View History

Accepting request 1179169 from home:pgajdos - version update to 12.7.5 2023/12/17: Version 12.7.5 - Sebastien Godard (sysstat <at> orange.fr) * [Quan quan Cao]: sar/sadc: Add new metrics pgprom/s and pgdem/s. * sar: Remove %vmeff metric. * sadf: Update various output formats to take into account metrics that have been added or removed. * Update DTD and XSD documents. * Update sar manual page. * sar: Add a cron entry and a new systemd service and timer to rotate daily data file at midnight. * Option -V with sysstat commands also displays environment contents. * [Sam Morris]: Use correct encoding to produce hyphen-minus when rendering man pages. * Add UMASK variable definition to sysstat(5) manual page. * Update non regression tests. * Add --getenv option to commands that didn't have it. * Update README file for Debian-based distros. * Update link to my personal web page in README and manual pages. * NLS: Translations updated. 2023/06/18: Version 12.7.4 - Sebastien Godard (sysstat <at> orange.fr) * Makefile.in: Fix installation error. * Makefile.in: Remove gcc warning displayed in LTO mode. 2023/06/16: Version 12.7.3 - Sebastien Godard (sysstat <at> orange.fr) * sar: Add new option '-x' used to display extended reports. * [Pavel Kopylov]: Fix an overflow which is still possible for some values. * [Jan Kurik]: Fix export of PSI metrics to a PCP archive. * [Lukáš Zaoral]: Tools that take `--dec=X` option should only accept digits. * common.c: Fix an overflow which was still possible for some values. OBS-URL: https://build.opensuse.org/request/show/1179169 OBS-URL: https://build.opensuse.org/package/show/Base:System/sysstat?expand=0&rev=151
2024-06-11 22:26:16 +02:00
Index: sysstat-12.7.5/sa1.in
===================================================================
Accepting request 1179169 from home:pgajdos - version update to 12.7.5 2023/12/17: Version 12.7.5 - Sebastien Godard (sysstat <at> orange.fr) * [Quan quan Cao]: sar/sadc: Add new metrics pgprom/s and pgdem/s. * sar: Remove %vmeff metric. * sadf: Update various output formats to take into account metrics that have been added or removed. * Update DTD and XSD documents. * Update sar manual page. * sar: Add a cron entry and a new systemd service and timer to rotate daily data file at midnight. * Option -V with sysstat commands also displays environment contents. * [Sam Morris]: Use correct encoding to produce hyphen-minus when rendering man pages. * Add UMASK variable definition to sysstat(5) manual page. * Update non regression tests. * Add --getenv option to commands that didn't have it. * Update README file for Debian-based distros. * Update link to my personal web page in README and manual pages. * NLS: Translations updated. 2023/06/18: Version 12.7.4 - Sebastien Godard (sysstat <at> orange.fr) * Makefile.in: Fix installation error. * Makefile.in: Remove gcc warning displayed in LTO mode. 2023/06/16: Version 12.7.3 - Sebastien Godard (sysstat <at> orange.fr) * sar: Add new option '-x' used to display extended reports. * [Pavel Kopylov]: Fix an overflow which is still possible for some values. * [Jan Kurik]: Fix export of PSI metrics to a PCP archive. * [Lukáš Zaoral]: Tools that take `--dec=X` option should only accept digits. * common.c: Fix an overflow which was still possible for some values. OBS-URL: https://build.opensuse.org/request/show/1179169 OBS-URL: https://build.opensuse.org/package/show/Base:System/sysstat?expand=0&rev=151
2024-06-11 22:26:16 +02:00
--- sysstat-12.7.5.orig/sa1.in
+++ sysstat-12.7.5/sa1.in
@@ -31,8 +31,14 @@ then
LONG_NAME=y
fi
+set -e
ENDIR=@SA_LIB_DIR@
cd ${ENDIR}
+LOCKFILE=/var/run/sysstat/sadc.LOCK
+mkdir -p /var/run/sysstat
+lockfile -r2 -30 "$LOCKFILE" 2>/dev/null
+trap "/bin/rm -f $LOCKFILE" EXIT
+
[ "$1" = "--boot" ] && shift && BOOT=y || BOOT=n
- update to 12.4.0: * All commands: Display statistics in color by default when the output is connected to a terminal. * sar: Now pretty-print all device names by default (that is to say, you no longer need to use option -p with option -d for that). * cifsiostat, iostat, sar: Add new --pretty option (this option makes the reports easier to read when long item names are used). * iostat: No longer use sysstat.ioconf file to determine the name of the devices. This file gave a wrong name for some devices with big minor numbers. * iostat, sar: Make device name consistent between both of them. * configure: Add new option "--enable-use-crond" to use standard cron daemon even if systemd is installed. * configure: Use AC_COMPILE_IFELSE instead of old AC_TRY_COMPILE macro. Remove other obsolete autoconf macros. * configure: Add new option "delay_range=". Used by sa2 script to wait for a random delay. * configure: Fix --enable-debuginfo option. * sa1: Insert a comment in daily datafile on system suspend/resume. * sa2: Wait for a random delay before running to prevent massive I/O burst on some systems. * sar: Fix typo in manual page. * sar, iostat, cifsiostat, mpstat, pidstat, tapestat and sa1 manual pages updated. * Update style for all manual pages. * Compress manual pages by default when they are installed. * Makefile: Remove all reports and date files (even those compressed with another program than gzip) when told to do so. * Add pcp help file to be used with iconfig script. * Update Travis script (now calls do_test script). OBS-URL: https://build.opensuse.org/package/show/Base:System/sysstat?expand=0&rev=111
2020-08-16 23:50:17 +02:00
[ "$1" = "--sleep" ] && shift && SLEEP=y || SLEEP=n
@@ -51,13 +57,13 @@ fi
- update to 12.4.0: * All commands: Display statistics in color by default when the output is connected to a terminal. * sar: Now pretty-print all device names by default (that is to say, you no longer need to use option -p with option -d for that). * cifsiostat, iostat, sar: Add new --pretty option (this option makes the reports easier to read when long item names are used). * iostat: No longer use sysstat.ioconf file to determine the name of the devices. This file gave a wrong name for some devices with big minor numbers. * iostat, sar: Make device name consistent between both of them. * configure: Add new option "--enable-use-crond" to use standard cron daemon even if systemd is installed. * configure: Use AC_COMPILE_IFELSE instead of old AC_TRY_COMPILE macro. Remove other obsolete autoconf macros. * configure: Add new option "delay_range=". Used by sa2 script to wait for a random delay. * configure: Fix --enable-debuginfo option. * sa1: Insert a comment in daily datafile on system suspend/resume. * sa2: Wait for a random delay before running to prevent massive I/O burst on some systems. * sar: Fix typo in manual page. * sar, iostat, cifsiostat, mpstat, pidstat, tapestat and sa1 manual pages updated. * Update style for all manual pages. * Compress manual pages by default when they are installed. * Makefile: Remove all reports and date files (even those compressed with another program than gzip) when told to do so. * Add pcp help file to be used with iconfig script. * Update Travis script (now calls do_test script). OBS-URL: https://build.opensuse.org/package/show/Base:System/sysstat?expand=0&rev=111
2020-08-16 23:50:17 +02:00
if [ "${SLEEP}" = "y" ]
then
- exec ${ENDIR}/sadc -F -L ${SADC_OPTIONS} -C "LINUX SLEEP MODE ($*)" ${SA_DIR}
+ ${ENDIR}/sadc -F -L ${SADC_OPTIONS} -C "LINUX SLEEP MODE ($*)" ${SA_DIR}
elif [ $# = 0 ] && [ "${BOOT}" = "n" ]
then
# Note: Stats are written at the end of previous file *and* at the
# beginning of the new one (when there is a file rotation) only if
# outfile has not been explicitly specified on the command line...
- exec ${ENDIR}/sadc -F -L ${SADC_OPTIONS} 1 1 ${SA_DIR}
- update to 12.4.0: * All commands: Display statistics in color by default when the output is connected to a terminal. * sar: Now pretty-print all device names by default (that is to say, you no longer need to use option -p with option -d for that). * cifsiostat, iostat, sar: Add new --pretty option (this option makes the reports easier to read when long item names are used). * iostat: No longer use sysstat.ioconf file to determine the name of the devices. This file gave a wrong name for some devices with big minor numbers. * iostat, sar: Make device name consistent between both of them. * configure: Add new option "--enable-use-crond" to use standard cron daemon even if systemd is installed. * configure: Use AC_COMPILE_IFELSE instead of old AC_TRY_COMPILE macro. Remove other obsolete autoconf macros. * configure: Add new option "delay_range=". Used by sa2 script to wait for a random delay. * configure: Fix --enable-debuginfo option. * sa1: Insert a comment in daily datafile on system suspend/resume. * sa2: Wait for a random delay before running to prevent massive I/O burst on some systems. * sar: Fix typo in manual page. * sar, iostat, cifsiostat, mpstat, pidstat, tapestat and sa1 manual pages updated. * Update style for all manual pages. * Compress manual pages by default when they are installed. * Makefile: Remove all reports and date files (even those compressed with another program than gzip) when told to do so. * Add pcp help file to be used with iconfig script. * Update Travis script (now calls do_test script). OBS-URL: https://build.opensuse.org/package/show/Base:System/sysstat?expand=0&rev=111
2020-08-16 23:50:17 +02:00
+ ${ENDIR}/sadc -F -L ${SADC_OPTIONS} 1 1 ${SA_DIR}
else
- exec ${ENDIR}/sadc -F -L ${SADC_OPTIONS} $* ${SA_DIR}
- update to 12.4.0: * All commands: Display statistics in color by default when the output is connected to a terminal. * sar: Now pretty-print all device names by default (that is to say, you no longer need to use option -p with option -d for that). * cifsiostat, iostat, sar: Add new --pretty option (this option makes the reports easier to read when long item names are used). * iostat: No longer use sysstat.ioconf file to determine the name of the devices. This file gave a wrong name for some devices with big minor numbers. * iostat, sar: Make device name consistent between both of them. * configure: Add new option "--enable-use-crond" to use standard cron daemon even if systemd is installed. * configure: Use AC_COMPILE_IFELSE instead of old AC_TRY_COMPILE macro. Remove other obsolete autoconf macros. * configure: Add new option "delay_range=". Used by sa2 script to wait for a random delay. * configure: Fix --enable-debuginfo option. * sa1: Insert a comment in daily datafile on system suspend/resume. * sa2: Wait for a random delay before running to prevent massive I/O burst on some systems. * sar: Fix typo in manual page. * sar, iostat, cifsiostat, mpstat, pidstat, tapestat and sa1 manual pages updated. * Update style for all manual pages. * Compress manual pages by default when they are installed. * Makefile: Remove all reports and date files (even those compressed with another program than gzip) when told to do so. * Add pcp help file to be used with iconfig script. * Update Travis script (now calls do_test script). OBS-URL: https://build.opensuse.org/package/show/Base:System/sysstat?expand=0&rev=111
2020-08-16 23:50:17 +02:00
+ ${ENDIR}/sadc -F -L ${SADC_OPTIONS} $* ${SA_DIR}
fi
Accepting request 1179169 from home:pgajdos - version update to 12.7.5 2023/12/17: Version 12.7.5 - Sebastien Godard (sysstat <at> orange.fr) * [Quan quan Cao]: sar/sadc: Add new metrics pgprom/s and pgdem/s. * sar: Remove %vmeff metric. * sadf: Update various output formats to take into account metrics that have been added or removed. * Update DTD and XSD documents. * Update sar manual page. * sar: Add a cron entry and a new systemd service and timer to rotate daily data file at midnight. * Option -V with sysstat commands also displays environment contents. * [Sam Morris]: Use correct encoding to produce hyphen-minus when rendering man pages. * Add UMASK variable definition to sysstat(5) manual page. * Update non regression tests. * Add --getenv option to commands that didn't have it. * Update README file for Debian-based distros. * Update link to my personal web page in README and manual pages. * NLS: Translations updated. 2023/06/18: Version 12.7.4 - Sebastien Godard (sysstat <at> orange.fr) * Makefile.in: Fix installation error. * Makefile.in: Remove gcc warning displayed in LTO mode. 2023/06/16: Version 12.7.3 - Sebastien Godard (sysstat <at> orange.fr) * sar: Add new option '-x' used to display extended reports. * [Pavel Kopylov]: Fix an overflow which is still possible for some values. * [Jan Kurik]: Fix export of PSI metrics to a PCP archive. * [Lukáš Zaoral]: Tools that take `--dec=X` option should only accept digits. * common.c: Fix an overflow which was still possible for some values. OBS-URL: https://build.opensuse.org/request/show/1179169 OBS-URL: https://build.opensuse.org/package/show/Base:System/sysstat?expand=0&rev=151
2024-06-11 22:26:16 +02:00
Index: sysstat-12.7.5/sa2.in
===================================================================
Accepting request 1179169 from home:pgajdos - version update to 12.7.5 2023/12/17: Version 12.7.5 - Sebastien Godard (sysstat <at> orange.fr) * [Quan quan Cao]: sar/sadc: Add new metrics pgprom/s and pgdem/s. * sar: Remove %vmeff metric. * sadf: Update various output formats to take into account metrics that have been added or removed. * Update DTD and XSD documents. * Update sar manual page. * sar: Add a cron entry and a new systemd service and timer to rotate daily data file at midnight. * Option -V with sysstat commands also displays environment contents. * [Sam Morris]: Use correct encoding to produce hyphen-minus when rendering man pages. * Add UMASK variable definition to sysstat(5) manual page. * Update non regression tests. * Add --getenv option to commands that didn't have it. * Update README file for Debian-based distros. * Update link to my personal web page in README and manual pages. * NLS: Translations updated. 2023/06/18: Version 12.7.4 - Sebastien Godard (sysstat <at> orange.fr) * Makefile.in: Fix installation error. * Makefile.in: Remove gcc warning displayed in LTO mode. 2023/06/16: Version 12.7.3 - Sebastien Godard (sysstat <at> orange.fr) * sar: Add new option '-x' used to display extended reports. * [Pavel Kopylov]: Fix an overflow which is still possible for some values. * [Jan Kurik]: Fix export of PSI metrics to a PCP archive. * [Lukáš Zaoral]: Tools that take `--dec=X` option should only accept digits. * common.c: Fix an overflow which was still possible for some values. OBS-URL: https://build.opensuse.org/request/show/1179169 OBS-URL: https://build.opensuse.org/package/show/Base:System/sysstat?expand=0&rev=151
2024-06-11 22:26:16 +02:00
--- sysstat-12.7.5.orig/sa2.in
+++ sysstat-12.7.5/sa2.in
- update to 12.4.0: * All commands: Display statistics in color by default when the output is connected to a terminal. * sar: Now pretty-print all device names by default (that is to say, you no longer need to use option -p with option -d for that). * cifsiostat, iostat, sar: Add new --pretty option (this option makes the reports easier to read when long item names are used). * iostat: No longer use sysstat.ioconf file to determine the name of the devices. This file gave a wrong name for some devices with big minor numbers. * iostat, sar: Make device name consistent between both of them. * configure: Add new option "--enable-use-crond" to use standard cron daemon even if systemd is installed. * configure: Use AC_COMPILE_IFELSE instead of old AC_TRY_COMPILE macro. Remove other obsolete autoconf macros. * configure: Add new option "delay_range=". Used by sa2 script to wait for a random delay. * configure: Fix --enable-debuginfo option. * sa1: Insert a comment in daily datafile on system suspend/resume. * sa2: Wait for a random delay before running to prevent massive I/O burst on some systems. * sar: Fix typo in manual page. * sar, iostat, cifsiostat, mpstat, pidstat, tapestat and sa1 manual pages updated. * Update style for all manual pages. * Compress manual pages by default when they are installed. * Makefile: Remove all reports and date files (even those compressed with another program than gzip) when told to do so. * Add pcp help file to be used with iconfig script. * Update Travis script (now calls do_test script). OBS-URL: https://build.opensuse.org/package/show/Base:System/sysstat?expand=0&rev=111
2020-08-16 23:50:17 +02:00
@@ -59,6 +59,17 @@ fi
[ -f "${DFILE}" ] || exit 0
cd ${ENDIR}
+
+LOCKFILE=/var/run/sysstat/sadc.LOCK
+mkdir -p /var/run/sysstat
+if ! lockfile -r6 -600 $LOCKFILE 2>/dev/null; then
+ if test `find $LOCKFILE -mmin +180 2>/dev/null`; then
+ rm -f $LOCKFILE
+ logger -p cron.alert "$0: detected an old lockfile \"$LOCKFILE\"."
+ fi
+fi
+trap "/bin/rm -f $LOCKFILE" EXIT
+
if [ x${REPORTS} != xfalse ]
then
Accepting request 1179169 from home:pgajdos - version update to 12.7.5 2023/12/17: Version 12.7.5 - Sebastien Godard (sysstat <at> orange.fr) * [Quan quan Cao]: sar/sadc: Add new metrics pgprom/s and pgdem/s. * sar: Remove %vmeff metric. * sadf: Update various output formats to take into account metrics that have been added or removed. * Update DTD and XSD documents. * Update sar manual page. * sar: Add a cron entry and a new systemd service and timer to rotate daily data file at midnight. * Option -V with sysstat commands also displays environment contents. * [Sam Morris]: Use correct encoding to produce hyphen-minus when rendering man pages. * Add UMASK variable definition to sysstat(5) manual page. * Update non regression tests. * Add --getenv option to commands that didn't have it. * Update README file for Debian-based distros. * Update link to my personal web page in README and manual pages. * NLS: Translations updated. 2023/06/18: Version 12.7.4 - Sebastien Godard (sysstat <at> orange.fr) * Makefile.in: Fix installation error. * Makefile.in: Remove gcc warning displayed in LTO mode. 2023/06/16: Version 12.7.3 - Sebastien Godard (sysstat <at> orange.fr) * sar: Add new option '-x' used to display extended reports. * [Pavel Kopylov]: Fix an overflow which is still possible for some values. * [Jan Kurik]: Fix export of PSI metrics to a PCP archive. * [Lukáš Zaoral]: Tools that take `--dec=X` option should only accept digits. * common.c: Fix an overflow which was still possible for some values. OBS-URL: https://build.opensuse.org/request/show/1179169 OBS-URL: https://build.opensuse.org/package/show/Base:System/sysstat?expand=0&rev=151
2024-06-11 22:26:16 +02:00
S_REPEAT_HEADER=${REPEAT_HEADER} ${ENDIR}/sar $* -f ${DFILE} > ${RPT}