From b184cd5ee3bc97dfbfe80cf4fbb9fa4032ae3fe3 Mon Sep 17 00:00:00 2001 From: BrainwreckedTech Date: Wed, 25 Jan 2023 00:36:30 -0500 Subject: [PATCH] Add more restart hooks for systemd services --- restart_dnsmasq.hook | 13 +++++++++++++ restart_rngd.hook | 12 ++++++++++++ restart_wpa_supplicant.hook | 12 ++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 restart_dnsmasq.hook create mode 100644 restart_rngd.hook create mode 100644 restart_wpa_supplicant.hook diff --git a/restart_dnsmasq.hook b/restart_dnsmasq.hook new file mode 100644 index 0000000..0ff3a90 --- /dev/null +++ b/restart_dnsmasq.hook @@ -0,0 +1,13 @@ +# Reload systemd services on package upgrades + +[Trigger] +Operation = Upgrade +Type = Package +Target = dnsmasq + +[Action] +Description = Restarting dnsmasq service +Depends = systemd +When = PostTransaction +Exec = /etc/pacman.d/scripts/restart-hook dnsmasq.service + diff --git a/restart_rngd.hook b/restart_rngd.hook new file mode 100644 index 0000000..6dc1a41 --- /dev/null +++ b/restart_rngd.hook @@ -0,0 +1,12 @@ +# Reload systemd services on package upgrades + +[Trigger] +Operation = Upgrade +Type = Package +Target = rng-tools + +[Action] +Description = Restarting rngd service +Depends = systemd +When = PostTransaction +Exec = /etc/pacman.d/scripts/restart-hook rngd.service diff --git a/restart_wpa_supplicant.hook b/restart_wpa_supplicant.hook new file mode 100644 index 0000000..57635d1 --- /dev/null +++ b/restart_wpa_supplicant.hook @@ -0,0 +1,12 @@ +# Reload systemd services on package upgrades + +[Trigger] +Operation = Upgrade +Type = Package +Target = wpa_supplicant + +[Action] +Description = Restarting WPA Supplicant service +Depends = systemd +When = PostTransaction +Exec = /etc/pacman.d/scripts/restart-hook wpa_supplicant.service