slackware-current/source/a/nut/rc.nut-upsmon
Patrick J Volkerding f603ff80a7 Fri Apr 5 20:11:23 UTC 2024
a/etc-15.1-x86_64-10.txz:  Rebuilt.
  Added nut user (218) and nut group (218).
a/genpower-1.0.5-x86_64-5.txz:  Removed.
a/nut-2.8.2-x86_64-1.txz:  Added.
  This is a package to support uninterruptible power supplies, and replaces
  the obsolete genpower package.
  Thanks to V'yacheslav Stetskevych for the original SBo script.
a/sysvinit-scripts-15.1-noarch-16.txz:  Rebuilt.
  rc.M: start the NUT init scripts rc.nut-drvctl, rc.nut-upsd, and
  rc.nut-upsmon. Remove the genpower block.
  rc.6: support stopping the UPS inverter on the way down if we see
  /etc/killpower. Remove the genpower block.
a/tcsh-6.24.12-x86_64-1.txz:  Upgraded.
ap/man-db-2.12.1-x86_64-1.txz:  Upgraded.
ap/mpg123-1.32.6-x86_64-1.txz:  Upgraded.
ap/vim-9.1.0265-x86_64-1.txz:  Upgraded.
d/cargo-vendor-filterer-0.5.14-x86_64-1.txz:  Upgraded.
d/nasm-2.16.02-x86_64-1.txz:  Upgraded.
l/libproxy-0.5.5-x86_64-1.txz:  Upgraded.
l/python-hatchling-1.22.5-x86_64-1.txz:  Upgraded.
l/python-typing_extensions-4.11.0-x86_64-1.txz:  Upgraded.
x/xdm-1.1.16-x86_64-1.txz:  Upgraded.
xap/vim-gvim-9.1.0265-x86_64-1.txz:  Upgraded.
extra/bash-completion/bash-completion-2.13.0-noarch-1.txz:  Upgraded.
extra/tigervnc/tigervnc-1.13.1-x86_64-5.txz:  Rebuilt.
  Recompiled against xorg-server-21.1.12 to fix security issues:
  Heap buffer overread/data leakage in ProcXIGetSelectedEvents.
  Heap buffer overread/data leakage in ProcXIPassiveGrabDevice.
  Heap buffer overread/data leakage in ProcAppleDRICreatePixmap.
  Use-after-free in ProcRenderAddGlyphs.
  For more information, see:
    https://lists.x.org/archives/xorg-announce/2024-April/003497.html
    https://www.cve.org/CVERecord?id=CVE-2024-31080
    https://www.cve.org/CVERecord?id=CVE-2024-31081
    https://www.cve.org/CVERecord?id=CVE-2024-31082
    https://www.cve.org/CVERecord?id=CVE-2024-31083
  (* Security fix *)
2024-04-05 22:28:59 +02:00

46 lines
1.1 KiB
Bash

#!/bin/sh
# NUT upsmon start-up and shutdown script.
# upsmon is the client process that is responsible for the most important part
# of UPS monitoring--shutting down the system when the power goes out.
#
# upsmon should be run on every machine that is powered by the UPS if you wish
# to support automatic shutdown on battery power.
#
# See /etc/nut/ for configuration files.
# Start upsmon:
upsmon_start() {
# Make sure the runtime directory is there:
mkdir -p /run/nut
chown -R nut:nut /run/nut
chmod 0770 /run/nut
# Start the NUT UPS monitor and shutdown controller:
echo "Starting the NUT UPS monitor and shutdown controller: upsmon -u nut"
upsmon -u nut
}
# Stop upsmon:
upsmon_stop() {
echo "Stopping the NUT UPS monitor and shutdown controller."
upsmon -c stop
}
# Reload configuration files for upsmon:
upsmon_reload() {
echo "Reloading configuration files for the NUT UPS monitor and shutdown controller: upsmon -c reload"
upsmon -c reload
}
case "$1" in
'start')
upsmon_start
;;
'stop')
upsmon_stop
;;
'reload')
upsmon_reload
;;
*)
echo "usage $0 start|stop|reload"
esac