systemd/debian/systemd-coredump.postinst
Martin Pitt 90cdb988f3 debian/systemd-coredump.postinst: Do daemon-reload before starting systemd-coredump
The unit file may have changed on upgrades.

Closes: #820325
2016-04-25 09:00:29 +02:00

16 lines
473 B
Bash

#!/bin/sh
set -e
if [ "$1" = configure ]; then
adduser --quiet --system --group --no-create-home --home /run/systemd \
--gecos "systemd core dump processing" systemd-coredump
# enable systemd-coredump right after package installation
if [ -d /run/systemd/system ]; then
systemctl daemon-reload && systemctl start systemd-coredump.socket || true
fi
/lib/systemd/systemd-sysctl /usr/lib/sysctl.d/50-coredump.conf || true
fi
#DEBHELPER#