From e63f6f2d3c0ce185b26ed5f79544ec4e75df3741 Mon Sep 17 00:00:00 2001 From: BrainwreckedTech Date: Wed, 25 Jan 2023 01:49:32 -0500 Subject: [PATCH] Add restart_docker hook --- restart_docker.hook | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 restart_docker.hook diff --git a/restart_docker.hook b/restart_docker.hook new file mode 100644 index 0000000..ab7dadb --- /dev/null +++ b/restart_docker.hook @@ -0,0 +1,13 @@ +# Reload systemd services on package upgrades + +[Trigger] +Operation = Upgrade +Type = Package +Target = docker + +[Action] +Description = Restarting Docker socket +Depends = systemd +When = PostTransaction +Exec = /etc/pacman.d/scripts/restart-hook docker.socket +