ea00b7db43
Others will need to use a temporary files, too. In order to avoid potential clashes of multiple trap handlers move the local temp file into a global temp dir. While at it make sure that the trap handler returns the correct exit code. Signed-off-by: Philipp Rudo <prudo@redhat.com> Reviewed-by: Pingfan Liu <piliu@redhat.com> Reviewed-by: Coiby Xu <coxu@redhat.com>
18 lines
403 B
Desktop File
18 lines
403 B
Desktop File
[Unit]
|
|
Description=Crash recovery kernel arming
|
|
After=network.target network-online.target remote-fs.target basic.target
|
|
DefaultDependencies=no
|
|
ConditionKernelCommandLine=crashkernel
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/usr/bin/kdumpctl start
|
|
ExecStop=/usr/bin/kdumpctl stop
|
|
ExecReload=/usr/bin/kdumpctl reload
|
|
RemainAfterExit=yes
|
|
StartLimitInterval=0
|
|
PrivateTmp=yes
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|