slackware-current/source/a/nut/rc.nut-upsd
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

41 lines
840 B
Bash

#!/bin/sh
# NUT upsd start-up and shutdown script.
# This should be started after rc.nut-drvctl on the machine connected to the
# UPS's control port. See /etc/nut/ for configuration files.
# Start upsd:
upsd_start() {
# Make sure the runtime directory is there:
mkdir -p /run/nut
chown -R nut:nut /run/nut
chmod 0770 /run/nut
# Start the UPS daemon:
echo "Starting the NUT UPS information server: upsd -u nut"
upsd -u nut
}
# Stop upsd:
upsd_stop() {
echo "Stopping the NUT UPS information server."
upsd -c stop
}
# Reload configuration files for upsd:
upsd_reload() {
echo "Reloading configuration files for the NUT UPS information server: upsd -c reload"
upsd -c reload
}
case "$1" in
'start')
upsd_start
;;
'stop')
upsd_stop
;;
'reload')
upsd_reload
;;
*)
echo "usage $0 start|stop|reload"
esac