slackware-current/source/a/sysvinit-scripts/scripts/rc.M

439 lines
13 KiB
Mathematica
Raw Normal View History

#!/bin/bash
#
# rc.M This file is executed by init(8) when the system is being
# initialized for one of the "multi user" run levels (i.e.
# levels 1 through 6). It usually does mounting of file
# systems et al.
#
# Version: @(#)/etc/rc.d/rc.M 15.0 Fri Nov 12 18:51:28 UTC 2021
#
# Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
# Heavily modified by Patrick Volkerding <volkerdi@slackware.com>
#
# Tell the viewers what's going to happen.
echo "Going multiuser..."
# If we are in an lxc container, set $container to skip parts of the script.
# Thanks to Matteo Bernardini <ponce@slackbuilds.org> and Chris Willing for
# the initial work making this script lxc compatible.
if grep -aq container=lxc /proc/1/environ 2> /dev/null ; then
container="lxc"
fi
# Update all the shared library links:
if [ -x /sbin/ldconfig ]; then
echo "Updating shared library links: /sbin/ldconfig &"
/sbin/ldconfig &
fi
# Call the setterm init script to set screen blanking and power management
# defaults:
if [ -x /etc/rc.d/rc.setterm -a -z "$container" ]; then
/etc/rc.d/rc.setterm
fi
# Set the hostname:
if [ -z "$container" ]; then
if [ -r /etc/HOSTNAME ]; then
/bin/hostname $(cat /etc/HOSTNAME)
else
# fall back on this old default:
echo "darkstar.example.net" > /etc/HOSTNAME
/bin/hostname $(cat /etc/HOSTNAME)
fi
fi
# Set the permissions on /var/log/dmesg according to whether the kernel
# permits non-root users to access kernel dmesg information:
if [ -r /proc/sys/kernel/dmesg_restrict ]; then
if [ $(cat /proc/sys/kernel/dmesg_restrict) = 1 ]; then
touch /var/log/dmesg
chmod 640 /var/log/dmesg
fi
else
touch /var/log/dmesg
chmod 644 /var/log/dmesg
fi
# Save the contents of 'dmesg':
/bin/dmesg -s 65536 > /var/log/dmesg
# Initialize PCMCIA devices:
#
# NOTE: This used to be started near the top of rc.S so that PCMCIA devices
# could be fsck'ed along with the other drives. This had some unfortunate
# side effects, however, since root isn't yet read-write, and /var might not
# even be mounted the .pid files can't be correctly written in /var/run and
# the pcmcia system can't be correctly shut down. If you want some PCMCIA
# partition to be mounted at boot (or when the card is inserted) then add
# the appropriate lines to /etc/pcmcia/scsi.opts.
#
# Note that the stuff in /etc/pcmcia/ is only for 2.4.x kernels using
# 16-bit PCMCIA cards (not 32-bit Cardbus cards!). For example, with a
# wireless card you might need to set options in /etc/pcmcia OR in
# /etc/rc.d/rc.wireless.conf, or even in /etc/rc.d/rc.inet1.conf (with
# extra options if needed for the encryption key, ESSID, etc.)
#
# Hopefully this situation will be unified in the future, but for now
# that's how it is...
#
if [ -x /etc/rc.d/rc.pcmcia -a -z "$container" ]; then
/etc/rc.d/rc.pcmcia start
# The cards might need a little extra time here to initialize.
sleep 5
fi
# Start the system logger.
if [ -x /etc/rc.d/rc.syslog ]; then
/etc/rc.d/rc.syslog start
fi
Wed Mar 20 21:10:30 UTC 2024 a/libblockdev-2.28-x86_64-2.txz: Rebuilt. Drop python2 support. a/sysvinit-scripts-15.1-noarch-15.txz: Rebuilt. rc.M: start rc.iceccd and rc.icecc-scheduler earlier. a/util-linux-2.39.3-x86_64-2.txz: Rebuilt. Drop python2 support. a/volume_key-0.3.12-x86_64-6.txz: Rebuilt. Drop python2 support. ap/man-pages-6.7-noarch-1.txz: Upgraded. d/cmake-3.28.4-x86_64-1.txz: Upgraded. d/llvm-18.1.2-x86_64-1.txz: Upgraded. d/python2-2.7.18-x86_64-7.txz: Rebuilt. Bundle the final python2 versions of pip and setuptools. Drop the /usr/bin/python symlink. d/python3-3.9.19-x86_64-1.txz: Upgraded. Point the /usr/bin/python symlink at python3.9. PEP 394 says we can do this, and in a world of ambigious shebangs, this is probably the best of the available options. This update also fixes security issues: bundled libexpat was updated to 2.6.0. zipfile is now protected from the "quoted-overlap" zipbomb. tempfile.TemporaryDirectory cleanup no longer dereferences symlinks when working around file system permission errors. For more information, see: https://pythoninsider.blogspot.com/2024/03/python-31014-3919-and-3819-is-now.html https://www.cve.org/CVERecord?id=CVE-2023-52425 https://www.cve.org/CVERecord?id=CVE-2024-0450 https://www.cve.org/CVERecord?id=CVE-2023-6597 (* Security fix *) d/strace-6.8-x86_64-1.txz: Upgraded. kde/kross-interpreters-23.08.5-x86_64-2.txz: Rebuilt. Drop python2 support. l/libxml2-2.12.6-x86_64-2.txz: Rebuilt. Drop python2 support. l/mozjs115-115.9.0esr-x86_64-2.txz: Rebuilt. Fixed installed library name. Thanks to reddog83. Fixed slack-desc. Thanks to r1w1s1. l/phonon-4.12.0-x86_64-1.txz: Upgraded. l/pilot-link-0.12.5-x86_64-17.txz: Rebuilt. Drop python2 support. l/python2-module-collection-2.7.18-x86_64-6.txz: Removed. Good bye! l/python2-pycairo-1.18.2-x86_64-1.txz: Added. We'll need this (along with pygtk and pygobject) until we get gimp3. Well, we could build gimp without python support, but I really don't think that's the route we want to take. n/bind-9.18.25-x86_64-1.txz: Upgraded. n/crda-4.15-x86_64-1.txz: Removed. The kernel is able to load from wireless-regdb directly. Obsolete. n/getmail-6.18.14-x86_64-1.txz: Upgraded. n/gpgme-1.23.2-x86_64-2.txz: Rebuilt. Drop python2 support. n/obexftp-0.24.2-x86_64-11.txz: Rebuilt. Drop python2 support. n/wireless-regdb-2024.01.23-x86_64-1.txz: Added. Wireless regulatory database, previously bundled with crda. x/ibus-1.5.29-x86_64-2.txz: Rebuilt. Drop python2 support. x/libkkc-0.3.5-x86_64-4.txz: Rebuilt. Still forcing python2 with this one, but perhaps a python3 marisa module could work around this. x/libkkc-data-0.2.7-x86_64-4.txz: Rebuilt. Still forcing python2 with this one, but perhaps a python3 marisa module could work around this. x/xcb-proto-1.16.0-x86_64-2.txz: Rebuilt. Drop python2 support. x/xpyb-1.3.1-x86_64-7.txz: Removed. Nothing uses it, and it was never updated for python3. Removed as obsolete.
2024-03-20 22:10:30 +01:00
# Start the Icecream scheduler. This needs to run on only one machine that is
# part of the compile cluster:
if [ -x /etc/rc.d/rc.icecc-scheduler ]; then
/etc/rc.d/rc.icecc-scheduler start
fi
# Start the Icecream daemon. This needs to run on every machine that will be
# part of the compile cluster (including the machine running the scheduler):
if [ -x /etc/rc.d/rc.iceccd ]; then
/etc/rc.d/rc.iceccd start
fi
# Update the X font indexes:
if [ -x /usr/bin/fc-cache ]; then
echo "Updating X font indexes: /usr/bin/fc-cache -f &"
/usr/bin/fc-cache -f &
fi
# Run rc.udev again. This will start udev if it is not already running
# (for example, upon return from runlevel 1), otherwise it will trigger it
# to look for device changes and to generate persistent rules if needed.
if grep -wq sysfs /proc/mounts && grep -q devtmpfs /proc/filesystems ; then
if ! grep -wq nohotplug /proc/cmdline ; then
if [ -x /etc/rc.d/rc.udev -a -z "$container" ]; then
/etc/rc.d/rc.udev start
fi
fi
fi
# Start the haveged entropy daemon:
if [ -x /etc/rc.d/rc.haveged -a -z "$container" ]; then
/etc/rc.d/rc.haveged start
fi
# Start the rngd entropy daemon:
if [ -x /etc/rc.d/rc.rngd -a -z "$container" ]; then
/etc/rc.d/rc.rngd start
fi
# Initialize the networking hardware.
if [ -x /etc/rc.d/rc.inet1 ]; then
/etc/rc.d/rc.inet1
fi
# Start D-Bus:
if [ -x /etc/rc.d/rc.messagebus ]; then
/etc/rc.d/rc.messagebus start
fi
# Start the session/seat daemon:
if [ -x /etc/rc.d/rc.elogind -a -x /bin/loginctl ]; then
/etc/rc.d/rc.elogind start
elif [ -x /etc/rc.d/rc.consolekit -a -x /usr/sbin/console-kit-daemon ]; then
/etc/rc.d/rc.consolekit start
fi
# Start Bluetooth:
if [ -x /etc/rc.d/rc.bluetooth ]; then
/etc/rc.d/rc.bluetooth start
fi
# Start wicd or networkmanager:
if [ -x /etc/rc.d/rc.wicd -a -x /usr/sbin/wicd ]; then
/etc/rc.d/rc.wicd start
elif [ -x /etc/rc.d/rc.networkmanager ]; then
/etc/rc.d/rc.networkmanager start
fi
Fri Feb 23 02:27:35 UTC 2024 a/aaa_libraries-15.1-x86_64-26.txz: Rebuilt. Upgraded: libacl.so.1.1.2302, libattr.so.1.1.2502, liblzma.so.5.4.6, libpcre2-8.so.0.12.0, libz.so.1.3.1, libcares.so.2.11.0, libexpat.so.1.9.0, libffi.so.8.1.4, libglib-2.0.so.0.7800.4, libgmodule-2.0.so.0.7800.4, libgobject-2.0.so.0.7800.4, libgthread-2.0.so.0.7800.4, libidn.so.12.6.5, libidn2.so.0.4.0, libpng16.so.16.41.0, libpsl.so.5.3.5, libtdb.so.1.4.10, libusb-1.0.so.0.4.0. a/etc-15.1-x86_64-5.txz: Rebuilt. Added UID 214 and GID 214 for avahi. a/gettext-0.22.5-x86_64-1.txz: Upgraded. a/pkgtools-15.1-noarch-9.txz: Rebuilt. setup.services: support rc.avahidaemon and rc.avahidnsconfd. a/sysvinit-scripts-15.1-noarch-13.txz: Rebuilt. rc.M: start (if executable) rc.avahidaemon and rc.avahidnsconfd. ap/cups-2.4.7-x86_64-2.txz: Rebuilt. Recompiled against avahi. ap/cups-filters-1.28.17-x86_64-4.txz: Rebuilt. Recompiled against avahi. ap/hplip-3.23.12-x86_64-1.txz: Upgraded. Compiled against avahi. ap/xmltoman-0.6-x86_64-1.txz: Added. This is needed to generate manpages for avahi. d/distcc-3.4-x86_64-4.txz: Rebuilt. Recompiled against avahi. d/gettext-tools-0.22.5-x86_64-1.txz: Upgraded. l/avahi-20240220_dffd549-x86_64-1.txz: Added. It was either this, or drop (or fork) hplip. We'll enjoy it in the long run. Thanks to David Somero for the original build script, and to Robby Workman for years of maintenance. Signed-off-by: volkerdi Acked-by: alienBOB l/libdaemon-0.14-x86_64-1.txz: Added. This is needed by avahi. l/pipewire-1.0.3-x86_64-5.txz: Rebuilt. Recompiled against avahi. l/pulseaudio-17.0-x86_64-3.txz: Rebuilt. Recompiled against avahi. n/NetworkManager-1.46.0-x86_64-1.txz: Upgraded. n/netatalk-3.1.18-x86_64-2.txz: Rebuilt. Recompiled against avahi. n/samba-4.19.5-x86_64-2.txz: Rebuilt. Recompiled against avahi. xap/pidgin-2.14.12-x86_64-3.txz: Rebuilt. Recompiled against avahi. xap/sane-1.2.1-x86_64-3.txz: Rebuilt. Recompiled against avahi. extra/bash-completion/bash-completion-2.12.0-noarch-1.txz: Upgraded.
2024-02-23 03:27:35 +01:00
# Start Avahi mDNS/DNS-SD daemon:
if [ -x /etc/rc.d/rc.avahidaemon ]; then
/etc/rc.d/rc.avahidaemon start
fi
# Start Avahi mDNS/DNS-SD DNS server configuration daemon:
if [ -x /etc/rc.d/rc.avahidnsconfd ]; then
/etc/rc.d/rc.avahidnsconfd start
fi
# Start networking daemons:
if [ -x /etc/rc.d/rc.inet2 ]; then
/etc/rc.d/rc.inet2
fi
Sat Jul 8 19:46:10 UTC 2023 a/cryptsetup-2.6.1-x86_64-3.txz: Rebuilt. rc.luks: support start/stop/status. Add a manpage for crypttab. Thanks to PiterPunk. a/sysvinit-scripts-15.1-noarch-6.txz: Rebuilt. rc.M: call "rc.luks start" to unlock any volumes that are still locked. rc.6: call "rc.luks stop" to close volumes at shutdown. Thanks to PiterPunk. kde/attica-5.108.0-x86_64-1.txz: Upgraded. kde/baloo-5.108.0-x86_64-1.txz: Upgraded. kde/bluez-qt-5.108.0-x86_64-1.txz: Upgraded. kde/breeze-icons-5.108.0-noarch-1.txz: Upgraded. kde/extra-cmake-modules-5.108.0-x86_64-1.txz: Upgraded. kde/frameworkintegration-5.108.0-x86_64-1.txz: Upgraded. kde/kactivities-5.108.0-x86_64-1.txz: Upgraded. kde/kactivities-stats-5.108.0-x86_64-1.txz: Upgraded. kde/kapidox-5.108.0-x86_64-1.txz: Upgraded. kde/karchive-5.108.0-x86_64-1.txz: Upgraded. kde/kauth-5.108.0-x86_64-1.txz: Upgraded. kde/kbookmarks-5.108.0-x86_64-1.txz: Upgraded. kde/kcalendarcore-5.108.0-x86_64-1.txz: Upgraded. kde/kcmutils-5.108.0-x86_64-1.txz: Upgraded. kde/kcodecs-5.108.0-x86_64-1.txz: Upgraded. kde/kcompletion-5.108.0-x86_64-1.txz: Upgraded. kde/kconfig-5.108.0-x86_64-1.txz: Upgraded. kde/kconfigwidgets-5.108.0-x86_64-1.txz: Upgraded. kde/kcontacts-5.108.0-x86_64-1.txz: Upgraded. kde/kcoreaddons-5.108.0-x86_64-1.txz: Upgraded. kde/kcrash-5.108.0-x86_64-1.txz: Upgraded. kde/kdav-5.108.0-x86_64-1.txz: Upgraded. kde/kdbusaddons-5.108.0-x86_64-1.txz: Upgraded. kde/kdeclarative-5.108.0-x86_64-1.txz: Upgraded. kde/kded-5.108.0-x86_64-1.txz: Upgraded. kde/kdelibs4support-5.108.0-x86_64-1.txz: Upgraded. kde/kdesignerplugin-5.108.0-x86_64-1.txz: Upgraded. kde/kdesu-5.108.0-x86_64-1.txz: Upgraded. kde/kdewebkit-5.108.0-x86_64-1.txz: Upgraded. kde/kdnssd-5.108.0-x86_64-1.txz: Upgraded. kde/kdoctools-5.108.0-x86_64-1.txz: Upgraded. kde/kemoticons-5.108.0-x86_64-1.txz: Upgraded. kde/kfilemetadata-5.108.0-x86_64-1.txz: Upgraded. kde/kglobalaccel-5.108.0-x86_64-1.txz: Upgraded. kde/kguiaddons-5.108.0-x86_64-1.txz: Upgraded. kde/kholidays-5.108.0-x86_64-1.txz: Upgraded. kde/khtml-5.108.0-x86_64-1.txz: Upgraded. kde/ki18n-5.108.0-x86_64-1.txz: Upgraded. kde/kiconthemes-5.108.0-x86_64-1.txz: Upgraded. kde/kidletime-5.108.0-x86_64-1.txz: Upgraded. kde/kimageformats-5.108.0-x86_64-1.txz: Upgraded. kde/kinit-5.108.0-x86_64-1.txz: Upgraded. kde/kio-5.108.0-x86_64-1.txz: Upgraded. kde/kirigami2-5.108.0-x86_64-1.txz: Upgraded. kde/kitemmodels-5.108.0-x86_64-1.txz: Upgraded. kde/kitemviews-5.108.0-x86_64-1.txz: Upgraded. kde/kjobwidgets-5.108.0-x86_64-1.txz: Upgraded. kde/kjs-5.108.0-x86_64-1.txz: Upgraded. kde/kjsembed-5.108.0-x86_64-1.txz: Upgraded. kde/kmediaplayer-5.108.0-x86_64-1.txz: Upgraded. kde/knewstuff-5.108.0-x86_64-1.txz: Upgraded. kde/knotifications-5.108.0-x86_64-1.txz: Upgraded. kde/knotifyconfig-5.108.0-x86_64-1.txz: Upgraded. kde/kpackage-5.108.0-x86_64-1.txz: Upgraded. kde/kparts-5.108.0-x86_64-1.txz: Upgraded. kde/kpeople-5.108.0-x86_64-1.txz: Upgraded. kde/kplotting-5.108.0-x86_64-1.txz: Upgraded. kde/kpty-5.108.0-x86_64-1.txz: Upgraded. kde/kquickcharts-5.108.0-x86_64-1.txz: Upgraded. kde/kross-5.108.0-x86_64-1.txz: Upgraded. kde/krunner-5.108.0-x86_64-1.txz: Upgraded. kde/kservice-5.108.0-x86_64-1.txz: Upgraded. kde/ktexteditor-5.108.0-x86_64-1.txz: Upgraded. kde/ktextwidgets-5.108.0-x86_64-1.txz: Upgraded. kde/kunitconversion-5.108.0-x86_64-1.txz: Upgraded. kde/kwallet-5.108.0-x86_64-1.txz: Upgraded. kde/kwayland-5.108.0-x86_64-1.txz: Upgraded. kde/kwidgetsaddons-5.108.0-x86_64-1.txz: Upgraded. kde/kwindowsystem-5.108.0-x86_64-1.txz: Upgraded. kde/kxmlgui-5.108.0-x86_64-1.txz: Upgraded. kde/kxmlrpcclient-5.108.0-x86_64-1.txz: Upgraded. kde/modemmanager-qt-5.108.0-x86_64-1.txz: Upgraded. kde/networkmanager-qt-5.108.0-x86_64-1.txz: Upgraded. kde/oxygen-icons5-5.108.0-noarch-1.txz: Upgraded. kde/plasma-framework-5.108.0-x86_64-1.txz: Upgraded. kde/prison-5.108.0-x86_64-1.txz: Upgraded. kde/purpose-5.108.0-x86_64-1.txz: Upgraded. kde/qqc2-desktop-style-5.108.0-x86_64-1.txz: Upgraded. kde/solid-5.108.0-x86_64-1.txz: Upgraded. kde/sonnet-5.108.0-x86_64-1.txz: Upgraded. kde/syndication-5.108.0-x86_64-1.txz: Upgraded. kde/syntax-highlighting-5.108.0-x86_64-1.txz: Upgraded. kde/threadweaver-5.108.0-x86_64-1.txz: Upgraded. xap/rxvt-unicode-9.26-x86_64-7.txz: Rebuilt. Applied upstream patch to fix special character rendering when rxvt-unicode is built against perl-5.38.0. Thanks to pghvlaans.
2023-07-08 21:46:10 +02:00
# Unlock any LUKS devices that still aren't unlocked:
if [ -x /etc/rc.d/rc.luks ]; then
/etc/rc.d/rc.luks start
fi
# Mount any additional filesystem types that haven't already been mounted:
mount -a -v 2> /dev/null | grep -v -e "already mounted" -e "ignored" | cut -f 1 -d : | tr -d ' ' | while read dev ; do mount | grep "${dev} " ; done
# Start the Control Script for automounter:
if [ -x /etc/rc.d/rc.autofs ]; then
/etc/rc.d/rc.autofs start
fi
# Start the Network Time Protocol daemon:
if [ -x /etc/rc.d/rc.ntpd ]; then
/etc/rc.d/rc.ntpd start
fi
# Remove stale locks and junk files (must be done after mount -a!)
/bin/rm -f /var/lock/* /var/spool/uucp/LCK..* /tmp/.X*lock /tmp/.X11-unix/* 2> /dev/null
# Remove stale hunt sockets so the game can start.
if [ -r /tmp/hunt -o -r /tmp/hunt.stats ]; then
echo "Removing your stale hunt sockets from /tmp."
/bin/rm -f /tmp/hunt*
fi
# Ensure basic filesystem permissions sanity.
chmod 755 / 2> /dev/null
chmod 1777 /tmp /var/tmp
# Start ACPI daemon.
if [ -x /etc/rc.d/rc.acpid -a -z "$container" ]; then
/etc/rc.d/rc.acpid start
fi
# Enable CPU frequency scaling:
if [ -x /etc/rc.d/rc.cpufreq -a -z "$container" ]; then
/etc/rc.d/rc.cpufreq start
fi
# Update any existing icon cache files:
if find /usr/share/icons -maxdepth 2 2> /dev/null | grep -q icon-theme.cache ; then
for theme_dir in /usr/share/icons/* ; do
if [ -r ${theme_dir}/icon-theme.cache ]; then
echo "Updating icon-theme.cache in ${theme_dir}..."
/usr/bin/gtk-update-icon-cache -t -f ${theme_dir} 1> /dev/null 2> /dev/null &
fi
done
# This would be a large file and probably shouldn't be there.
if [ -r /usr/share/icons/icon-theme.cache ]; then
echo "Deleting icon-theme.cache in /usr/share/icons..."
#/usr/bin/gtk-update-icon-cache -t -f /usr/share/icons 1> /dev/null 2> /dev/null &
rm -f /usr/share/icons/icon-theme.cache
fi
fi
# Update mime database:
if [ -x /usr/bin/update-mime-database -a -d /usr/share/mime ]; then
echo "Updating MIME database: /usr/bin/update-mime-database /usr/share/mime &"
/usr/bin/update-mime-database /usr/share/mime 1> /dev/null 2> /dev/null &
fi
# Start HAL:
if [ -x /etc/rc.d/rc.hald ]; then
/etc/rc.d/rc.hald start
fi
# Start system-wide PulseAudio daemon (not recommended, nor required in
# order to use PulseAudio -- see the script for details):
if [ -x /etc/rc.d/rc.pulseaudio ]; then
/etc/rc.d/rc.pulseaudio start
fi
# These GTK+/pango files need to be kept up to date for
# proper input method, pixbuf loaders, and font support.
if [ -x /usr/bin/update-gtk-immodules ]; then
echo "Updating gtk.immodules:"
echo " /usr/bin/update-gtk-immodules &"
/usr/bin/update-gtk-immodules > /dev/null 2>&1 &
fi
if [ -x /usr/bin/update-gdk-pixbuf-loaders ]; then
echo "Updating gdk-pixbuf.loaders:"
echo " /usr/bin/update-gdk-pixbuf-loaders &"
HOME=/root /usr/bin/update-gdk-pixbuf-loaders > /dev/null 2>&1 &
fi
if [ -x /usr/bin/update-pango-querymodules ]; then
echo "Updating pango.modules:"
echo " /usr/bin/update-pango-querymodules &"
/usr/bin/update-pango-querymodules > /dev/null 2>&1 &
fi
if [ -x /usr/bin/glib-compile-schemas ]; then
echo "Compiling GSettings XML schema files:"
echo " /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas &"
/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas >/dev/null 2>&1 &
fi
# Start dnsmasq, a simple DHCP/DNS server:
if [ -x /etc/rc.d/rc.dnsmasq ]; then
/etc/rc.d/rc.dnsmasq start
fi
# Start snmpd:
if [ -x /etc/rc.d/rc.snmpd ]; then
/etc/rc.d/rc.snmpd start
fi
# Start the print spooling system. This will usually be LPRng (lpd) or CUPS.
if [ -x /etc/rc.d/rc.cups ]; then
# Start CUPS:
/etc/rc.d/rc.cups start
elif [ -x /etc/rc.d/rc.lprng ]; then
# Start LPRng (lpd):
/etc/rc.d/rc.lprng start
fi
# Start netatalk. (a file/print server for Macs using Appletalk)
if [ -x /etc/rc.d/rc.atalk ]; then
/etc/rc.d/rc.atalk start
fi
# Start smartd, which monitors the status of S.M.A.R.T. compatible
# hard drives and reports any problems:
if [ -x /etc/rc.d/rc.smartd -a -z "$container" ]; then
/etc/rc.d/rc.smartd start
fi
# Monitor the UPS with genpowerd.
# To use this, uncomment this section and edit your settings in
# /etc/genpowerd.conf (serial device, UPS type, etc). For more information,
# see "man genpowerd" or the extensive documentation in the
# /usr/doc/genpower-*/ directory.
# You'll also need to configure a similar block in /etc/rc.d/rc.6 if you want
# support for stopping the UPS's inverter after the machine halts.
#if [ -x /sbin/genpowerd -a -z "$container" ]; then
# echo "Starting genpowerd daemon..."
# /sbin/genpowerd
#fi
# Turn on process accounting. To enable process accounting, make sure the
# option for BSD process accounting is enabled in your kernel, and then
# create the file /var/log/pacct (touch /var/log/pacct). By default, process
# accounting is not enabled (since /var/log/pacct does not exist). This is
# because the log file can get VERY large.
if [ -x /sbin/accton -a -r /var/log/pacct ]; then
chmod 640 /var/log/pacct
/sbin/accton /var/log/pacct
fi
# Start crond (Dillon's crond):
if [ -x /etc/rc.d/rc.crond ]; then
/etc/rc.d/rc.crond start
fi
# Start atd (manages jobs scheduled with 'at'):
if [ -x /etc/rc.d/rc.atd ]; then
/etc/rc.d/rc.atd start
fi
# Slackware-Mini-Quota-HOWTO:
# To really activate quotas, you'll need to add 'usrquota' and/or 'grpquota' to
# the appropriate partitions as listed in /etc/fstab. Here's an example:
#
# /dev/hda2 /home ext3 defaults,usrquota 1 1
#
# You'll then need to setup initial quota files at the top of the partitions
# to support quota, like this:
# touch /home/aquota.user /home/aquota.group
# chmod 600 /home/aquota.user /home/aquota.group
#
# Then, reboot to activate the system.
# To edit user quotas, use 'edquota'. See 'man edquota'. Also, the
# official Quota Mini-HOWTO has lots of useful information. That can be found
# here: /usr/doc/Linux-HOWTOs/Quota
# Check quotas and then turn quota system on:
if grep -q quota /etc/fstab ; then
for quotafs in $(awk '/quota/ {print $2}' /etc/fstab) ; do
/bin/rm -f $quotafs/{a,}quota.{group,user}.new
done
if [ -x /sbin/quotacheck ]; then
echo "Checking filesystem quotas: /sbin/quotacheck -avugm"
/sbin/quotacheck -avugm
fi
if [ -x /sbin/quotaon ]; then
echo "Activating filesystem quotas: /sbin/quotaon -avug"
/sbin/quotaon -avug
fi
fi
# Load ALSA (sound) defaults:
if [ -x /etc/rc.d/rc.alsa -a -z "$container" ]; then
/etc/rc.d/rc.alsa
fi
# Load a custom screen font if the user has an rc.font script.
if [ -x /etc/rc.d/rc.font ]; then
/etc/rc.d/rc.font
fi
# Load a custom keymap if the user has an rc.keymap script.
if [ -x /etc/rc.d/rc.keymap ]; then
/etc/rc.d/rc.keymap
fi
# Start the MariaDB database:
if [ -x /etc/rc.d/rc.mysqld ]; then
/etc/rc.d/rc.mysqld start
fi
# Start the SASL authentication server. This provides SASL
# authentication services for sendmail/postfix:
if [ -x /etc/rc.d/rc.saslauthd ]; then
/etc/rc.d/rc.saslauthd start
fi
# Start OpenLDAP:
if [ -x /etc/rc.d/rc.openldap ]; then
/etc/rc.d/rc.openldap start
fi
# Start local LDAP name service daemon (from nss-pam-ldapd):
if [ -x /etc/rc.d/rc.nss-pam-ldap ]; then
/etc/rc.d/rc.nss-pam-ldap start
fi
# Start Dovecot:
if [ -x /etc/rc.d/rc.dovecot ]; then
/etc/rc.d/rc.dovecot start
fi
# Start the mail server. Try the rc.sendmail script first, then try rc.postfix.
Tue Mar 29 20:16:24 UTC 2022 a/inih-55-x86_64-1.txz: Upgraded. a/inotify-tools-3.22.1.0-x86_64-1.txz: Upgraded. a/sysvinit-3.02-x86_64-1.txz: Upgraded. a/sysvinit-scripts-15.0-noarch-9.txz: Rebuilt. rc.M: Fix cosmetic mistake where a couple of paths were relative instead of absolute. Thanks to babydr. kde/bluedevil-5.24.4-x86_64-1.txz: Upgraded. kde/breeze-5.24.4-x86_64-1.txz: Upgraded. kde/breeze-grub-5.24.4-x86_64-1.txz: Upgraded. kde/breeze-gtk-5.24.4-x86_64-1.txz: Upgraded. kde/drkonqi-5.24.4-x86_64-1.txz: Upgraded. kde/kactivitymanagerd-5.24.4-x86_64-1.txz: Upgraded. kde/kde-cli-tools-5.24.4-x86_64-1.txz: Upgraded. kde/kde-gtk-config-5.24.4-x86_64-1.txz: Upgraded. kde/kdecoration-5.24.4-x86_64-1.txz: Upgraded. kde/kdeplasma-addons-5.24.4-x86_64-1.txz: Upgraded. kde/kgamma5-5.24.4-x86_64-1.txz: Upgraded. kde/khotkeys-5.24.4-x86_64-1.txz: Upgraded. kde/kinfocenter-5.24.4-x86_64-1.txz: Upgraded. kde/kmenuedit-5.24.4-x86_64-1.txz: Upgraded. kde/kscreen-5.24.4-x86_64-1.txz: Upgraded. kde/kscreenlocker-5.24.4-x86_64-1.txz: Upgraded. kde/ksshaskpass-5.24.4-x86_64-1.txz: Upgraded. kde/ksystemstats-5.24.4-x86_64-1.txz: Upgraded. kde/kwallet-pam-5.24.4-x86_64-1.txz: Upgraded. kde/kwayland-integration-5.24.4-x86_64-1.txz: Upgraded. kde/kwayland-server-5.24.4-x86_64-1.txz: Upgraded. kde/kwin-5.24.4-x86_64-1.txz: Upgraded. kde/kwrited-5.24.4-x86_64-1.txz: Upgraded. kde/layer-shell-qt-5.24.4-x86_64-1.txz: Upgraded. kde/libkscreen-5.24.4-x86_64-1.txz: Upgraded. kde/libksysguard-5.24.4-x86_64-1.txz: Upgraded. kde/milou-5.24.4-x86_64-1.txz: Upgraded. kde/oxygen-5.24.4-x86_64-1.txz: Upgraded. kde/plasma-browser-integration-5.24.4-x86_64-1.txz: Upgraded. kde/plasma-desktop-5.24.4-x86_64-1.txz: Upgraded. kde/plasma-disks-5.24.4-x86_64-1.txz: Upgraded. kde/plasma-firewall-5.24.4-x86_64-1.txz: Upgraded. kde/plasma-integration-5.24.4-x86_64-1.txz: Upgraded. kde/plasma-nm-5.24.4-x86_64-1.txz: Upgraded. kde/plasma-pa-5.24.4-x86_64-1.txz: Upgraded. kde/plasma-sdk-5.24.4-x86_64-1.txz: Upgraded. kde/plasma-systemmonitor-5.24.4-x86_64-1.txz: Upgraded. kde/plasma-vault-5.24.4-x86_64-1.txz: Upgraded. kde/plasma-workspace-5.24.4-x86_64-1.txz: Upgraded. kde/plasma-workspace-wallpapers-5.24.4-x86_64-1.txz: Upgraded. kde/polkit-kde-agent-1-5.24.4-x86_64-1.txz: Upgraded. kde/powerdevil-5.24.4-x86_64-1.txz: Upgraded. kde/qqc2-breeze-style-5.24.4-x86_64-1.txz: Upgraded. kde/sddm-kcm-5.24.4-x86_64-1.txz: Upgraded. kde/systemsettings-5.24.4-x86_64-1.txz: Upgraded. kde/xdg-desktop-portal-kde-5.24.4-x86_64-1.txz: Upgraded. l/expat-2.4.8-x86_64-1.txz: Upgraded. l/mozilla-nss-3.76.1-x86_64-1.txz: Upgraded. l/pipewire-0.3.49-x86_64-1.txz: Upgraded. xap/gparted-1.4.0-x86_64-1.txz: Upgraded.
2022-03-29 22:16:24 +02:00
if [ -x /etc/rc.d/rc.sendmail -a -x /usr/sbin/makemap ]; then
/etc/rc.d/rc.sendmail start
Tue Mar 29 20:16:24 UTC 2022 a/inih-55-x86_64-1.txz: Upgraded. a/inotify-tools-3.22.1.0-x86_64-1.txz: Upgraded. a/sysvinit-3.02-x86_64-1.txz: Upgraded. a/sysvinit-scripts-15.0-noarch-9.txz: Rebuilt. rc.M: Fix cosmetic mistake where a couple of paths were relative instead of absolute. Thanks to babydr. kde/bluedevil-5.24.4-x86_64-1.txz: Upgraded. kde/breeze-5.24.4-x86_64-1.txz: Upgraded. kde/breeze-grub-5.24.4-x86_64-1.txz: Upgraded. kde/breeze-gtk-5.24.4-x86_64-1.txz: Upgraded. kde/drkonqi-5.24.4-x86_64-1.txz: Upgraded. kde/kactivitymanagerd-5.24.4-x86_64-1.txz: Upgraded. kde/kde-cli-tools-5.24.4-x86_64-1.txz: Upgraded. kde/kde-gtk-config-5.24.4-x86_64-1.txz: Upgraded. kde/kdecoration-5.24.4-x86_64-1.txz: Upgraded. kde/kdeplasma-addons-5.24.4-x86_64-1.txz: Upgraded. kde/kgamma5-5.24.4-x86_64-1.txz: Upgraded. kde/khotkeys-5.24.4-x86_64-1.txz: Upgraded. kde/kinfocenter-5.24.4-x86_64-1.txz: Upgraded. kde/kmenuedit-5.24.4-x86_64-1.txz: Upgraded. kde/kscreen-5.24.4-x86_64-1.txz: Upgraded. kde/kscreenlocker-5.24.4-x86_64-1.txz: Upgraded. kde/ksshaskpass-5.24.4-x86_64-1.txz: Upgraded. kde/ksystemstats-5.24.4-x86_64-1.txz: Upgraded. kde/kwallet-pam-5.24.4-x86_64-1.txz: Upgraded. kde/kwayland-integration-5.24.4-x86_64-1.txz: Upgraded. kde/kwayland-server-5.24.4-x86_64-1.txz: Upgraded. kde/kwin-5.24.4-x86_64-1.txz: Upgraded. kde/kwrited-5.24.4-x86_64-1.txz: Upgraded. kde/layer-shell-qt-5.24.4-x86_64-1.txz: Upgraded. kde/libkscreen-5.24.4-x86_64-1.txz: Upgraded. kde/libksysguard-5.24.4-x86_64-1.txz: Upgraded. kde/milou-5.24.4-x86_64-1.txz: Upgraded. kde/oxygen-5.24.4-x86_64-1.txz: Upgraded. kde/plasma-browser-integration-5.24.4-x86_64-1.txz: Upgraded. kde/plasma-desktop-5.24.4-x86_64-1.txz: Upgraded. kde/plasma-disks-5.24.4-x86_64-1.txz: Upgraded. kde/plasma-firewall-5.24.4-x86_64-1.txz: Upgraded. kde/plasma-integration-5.24.4-x86_64-1.txz: Upgraded. kde/plasma-nm-5.24.4-x86_64-1.txz: Upgraded. kde/plasma-pa-5.24.4-x86_64-1.txz: Upgraded. kde/plasma-sdk-5.24.4-x86_64-1.txz: Upgraded. kde/plasma-systemmonitor-5.24.4-x86_64-1.txz: Upgraded. kde/plasma-vault-5.24.4-x86_64-1.txz: Upgraded. kde/plasma-workspace-5.24.4-x86_64-1.txz: Upgraded. kde/plasma-workspace-wallpapers-5.24.4-x86_64-1.txz: Upgraded. kde/polkit-kde-agent-1-5.24.4-x86_64-1.txz: Upgraded. kde/powerdevil-5.24.4-x86_64-1.txz: Upgraded. kde/qqc2-breeze-style-5.24.4-x86_64-1.txz: Upgraded. kde/sddm-kcm-5.24.4-x86_64-1.txz: Upgraded. kde/systemsettings-5.24.4-x86_64-1.txz: Upgraded. kde/xdg-desktop-portal-kde-5.24.4-x86_64-1.txz: Upgraded. l/expat-2.4.8-x86_64-1.txz: Upgraded. l/mozilla-nss-3.76.1-x86_64-1.txz: Upgraded. l/pipewire-0.3.49-x86_64-1.txz: Upgraded. xap/gparted-1.4.0-x86_64-1.txz: Upgraded.
2022-03-29 22:16:24 +02:00
elif [ -x /etc/rc.d/rc.postfix -a -x /usr/sbin/postdrop ]; then
/etc/rc.d/rc.postfix start
fi
# Start Apache web server:
if [ -x /etc/rc.d/rc.httpd ]; then
/etc/rc.d/rc.httpd start
fi
# Start Samba (a file/print server for Windows machines).
# Samba can be started in /etc/inetd.conf instead.
if [ -x /etc/rc.d/rc.samba ]; then
/etc/rc.d/rc.samba start
fi
# Start the GPM mouse server:
if [ -x /etc/rc.d/rc.gpm ]; then
/etc/rc.d/rc.gpm start
fi
# If there are SystemV init scripts for this runlevel, run them.
if [ -x /etc/rc.d/rc.sysvinit ]; then
/etc/rc.d/rc.sysvinit
fi
# Start the local setup procedure.
if [ -x /etc/rc.d/rc.local ]; then
/etc/rc.d/rc.local
fi
# All done.