Add yet even more restart hooks for systemd

This commit is contained in:
Brainwrecked Tech 2023-01-25 01:23:58 -05:00
parent 8c03621262
commit 04ec506c47
8 changed files with 102 additions and 0 deletions

13
restart_acpid.hook Normal file
View File

@ -0,0 +1,13 @@
# Reload systemd services on package upgrades
[Trigger]
Operation = Upgrade
Type = Package
Target = acpid
[Action]
Description = Restarting ACPI daemon service
Depends = systemd
When = PostTransaction
Exec = /etc/pacman.d/scripts/restart-hook acpid.service

13
restart_cpupower.hook Normal file
View File

@ -0,0 +1,13 @@
# Reload systemd services on package upgrades
[Trigger]
Operation = Upgrade
Type = Package
Target = cpupower
[Action]
Description = Restarting CPU Power service
Depends = systemd
When = PostTransaction
Exec = /etc/pacman.d/scripts/restart-hook cpupower.service

13
restart_hddtemp.hook Normal file
View File

@ -0,0 +1,13 @@
# Reload systemd services on package upgrades
[Trigger]
Operation = Upgrade
Type = Package
Target = hddtemp
[Action]
Description = Restarting HDD Temperature service
Depends = systemd
When = PostTransaction
Exec = /etc/pacman.d/scripts/restart-hook hddtemp.service

12
restart_libvirtd.hook Normal file
View File

@ -0,0 +1,12 @@
# Reload systemd services on package upgrades
[Trigger]
Operation = Upgrade
Type = Package
Target = libvirtd
[Action]
Description = Restarting libvirtd sockets
Depends = systemd
When = PostTransaction
Exec = /etc/pacman.d/scripts/restart-hook libvirtd-admin.socket libvirtd-ro.socket libvirtd.socket virtlockd.socket virtlogd-admin.socket virtlogd.socket

13
restart_lm_sensors.hook Normal file
View File

@ -0,0 +1,13 @@
# Reload systemd services on package upgrades
[Trigger]
Operation = Upgrade
Type = Package
Target = lm_sensors
[Action]
Description = Restarting Linux Monitoring Sensors service
Depends = systemd
When = PostTransaction
Exec = /etc/pacman.d/scripts/restart-hook lm_sensors.service sensord.service

13
restart_minidlna.hook Normal file
View File

@ -0,0 +1,13 @@
# Reload systemd services on package upgrades
[Trigger]
Operation = Upgrade
Type = Package
Target = minidlna
[Action]
Description = Restarting MiniDLNA service
Depends = systemd
When = PostTransaction
Exec = /etc/pacman.d/scripts/restart-hook minidlna.service

13
restart_smartd.hook Normal file
View File

@ -0,0 +1,13 @@
# Reload systemd services on package upgrades
[Trigger]
Operation = Upgrade
Type = Package
Target = smartmontools
[Action]
Description = Restarting SMART Monitoring daemon service
Depends = systemd
When = PostTransaction
Exec = /etc/pacman.d/scripts/restart-hook smartd.service

12
restart_udisks2.hook Normal file
View File

@ -0,0 +1,12 @@
# Reload systemd services on package upgrades
[Trigger]
Operation = Upgrade
Type = Package
Target = udisks2
[Action]
Description = Restarting udisks2 service
Depends = systemd
When = PostTransaction
Exec = /etc/pacman.d/scripts/restart-hook udisks2.service