File: systemd-coredump.postinst

package info (click to toggle)
systemd 232-25+deb9u11
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 46,164 kB
  • sloc: ansic: 290,592; xml: 49,217; makefile: 5,503; sh: 4,031; python: 2,596; perl: 1,838
file content (15 lines) | stat: -rw-r--r-- 473 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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#