Skip to content

Instantly share code, notes, and snippets.

@mvidner
Created April 14, 2023 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mvidner/a6f50db78ed8b187c07cf64d5e4314e1 to your computer and use it in GitHub Desktop.
Save mvidner/a6f50db78ed8b187c07cf64d5e4314e1 to your computer and use it in GitHub Desktop.
signal-postmortem: a helper for YaST that is run when it is being killed by a signal
#!/bin/sh
exec >> /var/log/YaST2/signal 2>&1
# pstree -pluna; but let's use the long options for clarity
pstree --show-pids --long --uid-changes --numeric-sort --arguments
sleep 10
@mvidner
Copy link
Author

mvidner commented Apr 14, 2023

Put this to /usr/lib/YaST2/bin/signal-postmortem

it is referenced in yast/yast-core#102 but not actually shipped

@mvidner
Copy link
Author

mvidner commented Apr 14, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment