Created
April 14, 2023 09:58
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
The code from PR 102 is no longer used, instead this one is: https://github.com/yast/yast-ruby-bindings/blob/d99f5b6b76fed45b598b3f675be109bd7ed7bc1f/src/ruby/yast/y2start_helpers.rb#L185
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put this to
/usr/lib/YaST2/bin/signal-postmortem
it is referenced in yast/yast-core#102 but not actually shipped