summaryrefslogtreecommitdiffstats
path: root/debian/systemd-oomd.postinst
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/systemd-oomd.postinst12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/systemd-oomd.postinst b/debian/systemd-oomd.postinst
new file mode 100644
index 0000000..65629b7
--- /dev/null
+++ b/debian/systemd-oomd.postinst
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+# reload dbus configuration to make the new org.freedesktop.oom1 API available
+# The org.freedesktop.oom1.conf policy references the 'systemd-oom' user, thus
+# an explicit reload of dbus is needed after the system user was created.
+if [ -d /run/systemd/system ]; then
+ systemctl reload dbus || true
+fi