From 04ec506c47df7af5cd01fae042836ae013b94ac3 Mon Sep 17 00:00:00 2001 From: BrainwreckedTech Date: Wed, 25 Jan 2023 01:23:58 -0500 Subject: [PATCH] Add yet even more restart hooks for systemd --- restart_acpid.hook | 13 +++++++++++++ restart_cpupower.hook | 13 +++++++++++++ restart_hddtemp.hook | 13 +++++++++++++ restart_libvirtd.hook | 12 ++++++++++++ restart_lm_sensors.hook | 13 +++++++++++++ restart_minidlna.hook | 13 +++++++++++++ restart_smartd.hook | 13 +++++++++++++ restart_udisks2.hook | 12 ++++++++++++ 8 files changed, 102 insertions(+) create mode 100644 restart_acpid.hook create mode 100644 restart_cpupower.hook create mode 100644 restart_hddtemp.hook create mode 100644 restart_libvirtd.hook create mode 100644 restart_lm_sensors.hook create mode 100644 restart_minidlna.hook create mode 100644 restart_smartd.hook create mode 100644 restart_udisks2.hook diff --git a/restart_acpid.hook b/restart_acpid.hook new file mode 100644 index 0000000..d31f72b --- /dev/null +++ b/restart_acpid.hook @@ -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 + diff --git a/restart_cpupower.hook b/restart_cpupower.hook new file mode 100644 index 0000000..95fa46f --- /dev/null +++ b/restart_cpupower.hook @@ -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 + diff --git a/restart_hddtemp.hook b/restart_hddtemp.hook new file mode 100644 index 0000000..23c874e --- /dev/null +++ b/restart_hddtemp.hook @@ -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 + diff --git a/restart_libvirtd.hook b/restart_libvirtd.hook new file mode 100644 index 0000000..85cdeb1 --- /dev/null +++ b/restart_libvirtd.hook @@ -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 diff --git a/restart_lm_sensors.hook b/restart_lm_sensors.hook new file mode 100644 index 0000000..90685e4 --- /dev/null +++ b/restart_lm_sensors.hook @@ -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 + diff --git a/restart_minidlna.hook b/restart_minidlna.hook new file mode 100644 index 0000000..8726fe5 --- /dev/null +++ b/restart_minidlna.hook @@ -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 + diff --git a/restart_smartd.hook b/restart_smartd.hook new file mode 100644 index 0000000..09f1c89 --- /dev/null +++ b/restart_smartd.hook @@ -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 + diff --git a/restart_udisks2.hook b/restart_udisks2.hook new file mode 100644 index 0000000..7662cba --- /dev/null +++ b/restart_udisks2.hook @@ -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