shahrs87 commented on issue #525: [HBASE-22852] Stop gpg agent daemons in hbase nightlies. URL: https://github.com/apache/hbase/pull/525#issuecomment-525016523 I verified that we are shutting down the ggp agent with the following small extracted version of dev-support/jenkins-scripts/cache-apache-project-artifact.sh. Here is the test program. ----------- Start test program ------------------- `(base) rushabhshah-ltm:gpg-test rushabh.shah$ cat test-gpg-kill.sh set -e function cleanup { echo "Before stopping gpg agent daemon" ps -ef | grep gpg-agent echo "Stopping gpg agent daemon" gpgconf --homedir "/Users/rushabh.shah/gpg-test/.gpg" --kill gpg-agent echo "Stopped gpg agent daemon" echo "After stopping gpg agent daemon" ps -ef | grep gpg-agent } trap cleanup EXIT SIGQUIT rm -rf /Users/rushabh.shah/gpg-test/.gpg rm -f /Users/rushabh.shah/gpg-test/*.asc rm -f /Users/rushabh.shah/gpg-test/KEYS mkdir /Users/rushabh.shah/gpg-test/.gpg chmod -R 700 /Users/rushabh.shah/gpg-test/.gpg curl -L --fail -o /Users/rushabh.shah/gpg-test/artifact.asc "https://archive.apache.org/dist/hadoop/common/hadoop-2.8.5/hadoop-2.8.5.tar.gz.asc" curl -L --fail -o /Users/rushabh.shah/gpg-test/KEYS "http://www.apache.org/dist/hadoop/common/KEYS" gpg --homedir /Users/rushabh.shah/gpg-test/.gpg --import /Users/rushabh.shah/gpg-test/KEYS echo "verifying artifact signature" gpg --homedir "/Users/rushabh.shah/gpg-test/.gpg" --verify "/Users/rushabh.shah/gpg-test/artifact.asc" \# injected exception here echo "signature good."` ---------------------- End test program -------------------------------- Below is the output of the program. ---------------------- Start output of test program -------------------------------- (base) rushabhshah-ltm:gpg-test rushabh.shah$ sh test-gpg-kill.sh gpg: keybox '/Users/rushabh.shah/gpg-test/.gpg/pubring.kbx' created Importing bunch of keys gpg: Total number processed: 51 gpg: imported: 51 gpg: no ultimately trusted keys found verifying artifact signature gpg: no signed data gpg: can't hash datafile: No data Before stopping gpg agent daemon 414592180 50900 1 0 18Aug19 ?? 0:00.01 /bin/bash /usr/local/MacGPG2/libexec/shutdown-gpg-agent 414592180 95647 1 0 1:06PM ?? 0:00.00 gpg-agent --homedir /Users/rushabh.shah/gpg-test/.gpg --use-standard-socket --daemon 414592180 95650 95635 0 1:06PM ttys009 0:00.00 grep gpg-agent Stopping gpg agent daemon Stopped gpg agent daemon After stopping gpg agent daemon 414592180 50900 1 0 18Aug19 ?? 0:00.01 /bin/bash /usr/local/MacGPG2/libexec/shutdown-gpg-agent 414592180 95654 95635 0 1:06PM ttys009 0:00.00 grep gpg-agent ---------------------- End output of test program -------------------------------- @saintstack @busbey Hope this testing helps.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
