mirror of
https://git.proxmox.com/git/systemd
synced 2025-12-26 10:35:15 +00:00
16 lines
465 B
Bash
16 lines
465 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
adduser --quiet --system --group --no-create-home --home /run/systemd \
|
|
--gecos "systemd Userspace OOM Killer" systemd-oom
|
|
|
|
# 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
|
|
|
|
#DEBHELPER#
|