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