diff options
Diffstat (limited to 'debian/systemd-oomd.postinst')
-rw-r--r-- | debian/systemd-oomd.postinst | 12 |
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 |