GJL closed pull request #6779: [FLINK-10465][tests] Do not stop sshd if it is supervised by runit. URL: https://github.com/apache/flink/pull/6779
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/flink-jepsen/src/jepsen/flink/utils.clj b/flink-jepsen/src/jepsen/flink/utils.clj index 50d0075ca35..5f96f8c00b7 100644 --- a/flink-jepsen/src/jepsen/flink/utils.clj +++ b/flink-jepsen/src/jepsen/flink/utils.clj @@ -86,4 +86,7 @@ [] (info "Stop all supervised services.") (c/su - (c/exec :rm :-f (c/lit (str "/etc/service/*"))))) + ;; HACK: + ;; Remove all symlinks in /etc/service except sshd. + ;; This is only relevant when tests are run in Docker because there sshd is started using runit. + (c/exec :find (c/lit (str "/etc/service -maxdepth 1 -type l ! -name 'sshd' -delete"))))) ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on 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
