summaryrefslogtreecommitdiffstats
path: root/abs/core/systemd/systemd-tmpfiles.hook
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/systemd/systemd-tmpfiles.hook')
-rw-r--r--abs/core/systemd/systemd-tmpfiles.hook11
1 files changed, 11 insertions, 0 deletions
diff --git a/abs/core/systemd/systemd-tmpfiles.hook b/abs/core/systemd/systemd-tmpfiles.hook
new file mode 100644
index 0000000..18cdd91
--- /dev/null
+++ b/abs/core/systemd/systemd-tmpfiles.hook
@@ -0,0 +1,11 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Target = usr/lib/tmpfiles.d/*.conf
+
+[Action]
+Description = Creating temporary files...
+When = PostTransaction
+Exec = /bin/sh -c 'while read -r f; do /usr/bin/systemd-tmpfiles --create "$(basename "$f")"; done'
+NeedsTargets