1
0
Fork 0
systemd/debian/systemd-coredump.prerm
Daniel Baumann 1bd927b9e1
Adding debian version 257.7-1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 18:07:46 +02:00

15 lines
377 B
Bash

#!/bin/sh
set -e
if [ "$1" = remove ]; then
# disable systemd-coredump on removal
if [ -w /proc/sys/kernel/core_pattern ] && grep -q '^|.*systemd-coredump' /proc/sys/kernel/core_pattern; then
echo core > /proc/sys/kernel/core_pattern
fi
if [ -d /run/systemd/system ]; then
systemctl stop systemd-coredump.socket || true
fi
fi
#DEBHELPER#