Howdy,
To get rc.local running you used to be able to put the file in /etc/rc.d and then reboot.
This has worked for quite some time but does not any more. This situation has been happening now for several months. Am I missing something?
Any/all help/hints/tips/suggestions would be appreciated.
Best regards,
George...
On 4/13/23 16:53, George R Goffe via test wrote:
To get rc.local running you used to be able to put the file in /etc/rc.d and then reboot.
This has worked for quite some time but does not any more. This situation has been happening now for several months. Am I missing something?
Is the file executable? man systemd-rc-local-generator
But why are you using it anyway?
On Fri, Apr 14, 2023 at 12:54 AM George R Goffe via test test@lists.fedoraproject.org wrote:
Howdy,
To get rc.local running you used to be able to put the file in /etc/rc.d and then reboot.
This has worked for quite some time but does not any more. This situation has been happening now for several months. Am I missing something?
Any/all help/hints/tips/suggestions would be appreciated.
Can you migrate to the systemd equivalent? https://www.redhat.com/sysadmin/replacing-rclocal-systemd
On Fri, Apr 14, 2023 at 1:54 AM George R Goffe via test < test@lists.fedoraproject.org> wrote:
Howdy,
To get rc.local running you used to be able to put the file in /etc/rc.d and then reboot.
This has worked for quite some time but does not any more. This situation has been happening now for several months. Am I missing something?
See the output of "systemctl status rc-local.service", you'll see whether the service is enabled and a possible error if there was some.
Howdy,
...
.... Am I missing something?
ll /etc/rc.d/ ... -rwxr-xr-x. 1 root root 5,1K 7. Apr 21:25 rc.local
cat /etc/rc.d/rc.local
#!/bin/bash touch /var/lock/subsys/local
# MTU # /usr/sbin/ifconfig enp0s31f6 mtu 1492;
# Wake-on-lan status for device enp0s31f6; # /usr/sbin/ethtool -s enp0s31f6 wol d;
################################################ # # Powertop, see script to generate this part # #################################################
# Enable Audio codec power management echo '1' > '/sys/module/snd_hda_intel/parameters/power_save';
# Enable SATA link power management for host0 echo 'med_power_with_dipm' > '/sys/class/scsi_host/host0/link_power_management_policy';
# Enable SATA link power management for host2 echo 'med_power_with_dipm' > '/sys/class/scsi_host/host2/link_power_management_policy';
# Enable SATA link power management for host3 echo 'med_power_with_dipm' > '/sys/class/scsi_host/host3/link_power_management_policy';
# Enable SATA link power management for host4 echo 'med_power_with_dipm' > '/sys/class/scsi_host/host4/link_power_management_policy';
# Enable SATA link power management for host5 echo 'med_power_with_dipm' > '/sys/class/scsi_host/host5/link_power_management_policy';
# Enable SATA link power management for host1 echo 'med_power_with_dipm' > '/sys/class/scsi_host/host1/link_power_management_policy';
# VM writeback timeout echo '1500' > '/proc/sys/vm/dirty_writeback_centisecs';
# Autosuspend for USB device AURA LED Controller [AsusTek Computer Inc.] echo 'auto' > '/sys/bus/usb/devices/1-2/power/control';
# Autosuspend for USB device USB Audio CODEC [Burr-Brown from TI ] echo 'auto' > '/sys/bus/usb/devices/1-10.3/power/control';
### Autosuspend for USB device USB Receiver [Logitech] echo 'auto' > '/sys/bus/usb/devices/1-10.1/power/control';
# Runtime PM for port ata4 of PCI device: Intel Corporation Device 43d2 echo 'auto' > '/sys/bus/pci/devices/0000:00:17.0/ata4/power/control';
# Runtime PM for PCI Device Intel Corporation Ethernet Controller I225-V echo 'auto' > '/sys/bus/pci/devices/0000:03:00.0/power/control';
# Runtime PM for disk sda echo 'auto' > '/sys/block/sda/device/power/control';
# Runtime PM for PCI Device Intel Corporation Device 43d2 echo 'auto' > '/sys/bus/pci/devices/0000:00:17.0/power/control';
# Runtime PM for port ata1 of PCI device: Intel Corporation Device 43d2 echo 'auto' > '/sys/bus/pci/devices/0000:00:17.0/ata1/power/control';
# Runtime PM for port ata2 of PCI device: Intel Corporation Device 43d2 echo 'auto' > '/sys/bus/pci/devices/0000:00:17.0/ata2/power/control';
# Runtime PM for port ata3 of PCI device: Intel Corporation Device 43d2 echo 'auto' > '/sys/bus/pci/devices/0000:00:17.0/ata3/power/control';
# Runtime PM for port ata6 of PCI device: Intel Corporation Device 43d2 echo 'auto' > '/sys/bus/pci/devices/0000:00:17.0/ata6/power/control';
# Runtime PM for PCI Device Intel Corporation Device 4387 echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.0/power/control';
# Runtime PM for PCI Device Intel Corporation Tiger Lake PCH CNVi WiFi echo 'auto' > '/sys/bus/pci/devices/0000:00:14.3/power/control';
# Runtime PM for PCI Device Samsung Electronics Co Ltd NVMe SSD Controller PM9A1/PM9A3/980PRO echo 'auto' > '/sys/bus/pci/devices/0000:01:00.0/power/control';
# Runtime PM for PCI Device Intel Corporation Tiger Lake-H USB 3.2 Gen 2x1 xHCI Host Controller echo 'auto' > '/sys/bus/pci/devices/0000:00:14.0/power/control';
# Runtime PM for PCI Device Intel Corporation Tiger Lake-H Shared SRAM echo 'auto' > '/sys/bus/pci/devices/0000:00:14.2/power/control';
# Runtime PM for port ata5 of PCI device: Intel Corporation Device 43d2 echo 'auto' > '/sys/bus/pci/devices/0000:00:17.0/ata5/power/control';
# Runtime PM for PCI Device Intel Corporation Tiger Lake-H PCI Express Root Port #9 echo 'auto' > '/sys/bus/pci/devices/0000:00:1d.0/power/control';
# Runtime PM for PCI Device Intel Corporation Tiger Lake-H SPI Controller echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.5/power/control';
# Runtime PM for PCI Device Intel Corporation Device 4c53 echo 'auto' > '/sys/bus/pci/devices/0000:00:00.0/power/control';
# Runtime PM for PCI Device Intel Corporation Tiger Lake-H PCI Express Root Port #5 echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.0/power/control';
# Wake-on-lan status for device wlo1 echo 'enabled' > '/sys/class/net/wlo1/device/power/wakeup';
# Wake status for USB device 1-9 # echo 'enabled' > '/sys/bus/usb/devices/1-9/power/wakeup';
# Wake status for USB device 1-14 # echo 'enabled' > '/sys/bus/usb/devices/1-14/power/wakeup';
# Wake status for USB device usb1 # echo 'enabled' > '/sys/bus/usb/devices/usb1/power/wakeup';
# Wake status for USB device 1-10 # echo 'enabled' > '/sys/bus/usb/devices/1-10/power/wakeup';
# Wake status for USB device usb2 # echo 'enabled' > '/sys/bus/usb/devices/usb2/power/wakeup';
# Wake status for USB device 1-2 # echo 'enabled' > '/sys/bus/usb/devices/1-2/power/wakeup';
exit 0;