summaryrefslogtreecommitdiffstats
path: root/debian/systemd-oomd.postinst
blob: 65629b77bad08b9ed8f7c5fd9ae5ae3e530c7dd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
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