HALF ECHO LEARN / REFERENCE COLLECTION

v262.2

units/systemd-coredump-register.service.in

1,023 bytesGit mode 100644Download original fileLGPL-2.1-or-later

Git blob: 2e3d3651d1689b372031600793d68e52da06658e

Lines 1–30 of 30

#  SPDX-License-Identifier: LGPL-2.1-or-later
#
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.
 
[Unit]
Description=Kernel Core Pattern Register
Documentation=man:systemd-coredump(8)
 
DefaultDependencies=no
After=systemd-coredumpd.service systemd-sysctl.service
BindsTo=systemd-coredumpd.service
Before=sysinit.target shutdown.target
Conflicts=shutdown.target
 
ConditionVirtualization=!container
RefuseManualStart=yes
RefuseManualStop=yes
 
[Service]
Type=oneshot
ExecCondition={{LIBEXECDIR}}/systemd-coredump --check-requirements
ExecStart={{LIBEXECDIR}}/systemd-sysctl --strict --verify --save=60-coredump --inline "kernel.core_pattern=@@/run/systemd/coredumpd/kernel"
ExecStop={{LIBEXECDIR}}/systemd-sysctl --revert=60-coredump --prefix=/kernel/core_pattern
RemainAfterExit=yes