🗝
summary refs log tree commit diff
path: root/packages/dissociate/dissociate.hook
diff options
context:
space:
mode:
Diffstat (limited to 'packages/dissociate/dissociate.hook')
-rw-r--r--packages/dissociate/dissociate.hook9
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/dissociate/dissociate.hook b/packages/dissociate/dissociate.hook
new file mode 100644
index 0000000..2d0c7a7
--- /dev/null
+++ b/packages/dissociate/dissociate.hook
@@ -0,0 +1,9 @@
+[Trigger]
+Type = Package
+Operation = Upgrade
+Target = dissociate
+
+[Action]
+Description = Restarting dissociate daemon...
+When = PostTransaction
+Exec = /bin/bash -c '/usr/bin/systemctl is-active dissociate.service -q && /usr/bin/systemctl restart dissociate.service || /usr/bin/true'