Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37500222
en ru br
Репозитории ALT
S:6.3.0-alt1
5.1: 3.0.1-alt1
4.1: 2.9.7-alt1
4.0: 2.8.16-alt1
3.0: 2.6.4-alt1
www.altlinux.org/Changes

Группа :: Система/Ядро и оборудование
Пакет: xfsprogs

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: xfsprogs-6.1.1-alt.patch
Скачать


 .rpmwrap             | 3 +++
 scrub/xfs_scrub_fail | 8 +++++++-
 2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/.rpmwrap b/.rpmwrap
new file mode 100644
index 00000000..7ce73101
--- /dev/null
+++ b/.rpmwrap
@@ -0,0 +1,3 @@
+%_topdir        %_macropath/...
+%_sourcedir     %_topdir/sources
+%_specdir       %_topdir
diff --git a/scrub/xfs_scrub_fail b/scrub/xfs_scrub_fail
index 36dd50e9..c25765a4 100755
--- a/scrub/xfs_scrub_fail
+++ b/scrub/xfs_scrub_fail
@@ -3,6 +3,7 @@
 # Email logs of failed xfs_scrub unit runs
 
 mailer=/usr/sbin/sendmail
+SYSTEMCTL=/usr/bin/systemctl
 recipient="$1"
 test -z "${recipient}" && exit 0
 mntpoint="$2"
@@ -13,6 +14,11 @@ if [ ! -x "${mailer}" ]; then
 	echo "${mailer}: Mailer program not found."
 	exit 1
 fi
+if [ ! -x "${SYSTEMCTL}" ]; then
+	echo "$SYSTEMCTL{}: Systemctl program not found."
+	exit 1
+fi
+
 
 (cat << ENDL
 To: $1
@@ -23,4 +29,4 @@ So sorry, the automatic xfs_scrub of ${mntpoint} on ${hostname} failed.
 
 A log of what happened follows:
 ENDL
-systemctl status --full --lines 4294967295 "xfs_scrub@${mntpoint}") | "${mailer}" -t -i
+$SYSTEMCTL status --full --lines 4294967295 "xfs_scrub@${mntpoint}") | "${mailer}" -t -i
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin